diff --git a/scripts/Common/Scripts/Config.ps1 b/scripts/Common/Scripts/Config.ps1 index 7a94d744..b3b6097d 100644 --- a/scripts/Common/Scripts/Config.ps1 +++ b/scripts/Common/Scripts/Config.ps1 @@ -346,8 +346,13 @@ $null = New-Module { $Value ) - $key = Get-SetupConfigKey; - $null = Set-ItemProperty ($key.PSPath) -Name $Name -Value $Value; + $key = (Get-SetupConfigKey).PSPath; + + if ($null -eq $Value) { + Remove-ItemProperty $key -Name $Name; + } else { + $null = Set-ItemProperty $key -Name $Name -Value $Value; + } } <#