diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 0b2e4cd1..4125e994 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -53,7 +53,7 @@ class Context { [void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) { $configKey = $this.EnsureConfigKey(); - $null = $configKey.SetValue($key, $value, $type); + $null = Set-ItemProperty -Path $configKey.PSPath -Value $value -Type $type; } [void] Remove([string] $key) {