diff --git a/scripts/Common/Scripts/Config.ps1 b/scripts/Common/Scripts/Config.ps1 index 93bd9256..51f1facf 100644 --- a/scripts/Common/Scripts/Config.ps1 +++ b/scripts/Common/Scripts/Config.ps1 @@ -205,7 +205,11 @@ $null = New-Module { $Name ) - return (Get-ProgramConfig @PSBoundParameters).enable; + try { + (Get-ProgramConfig @PSBoundParameters).enable; + } catch { + $false; + } } <#