Set registry values properly

This commit is contained in:
Manuel Thalmann 2024-07-31 22:33:16 +02:00
parent 595b7cb874
commit 2a7adfeba3

View file

@ -75,12 +75,8 @@ $null = New-Module {
$Value $Value
) )
if ($Value -is [string]) {
}
$key = Get-SetupConfigKey; $key = Get-SetupConfigKey;
return $key.SetValue($Value); $null = Set-ItemProperty ($key.PSPath) -Name $Name -Value $Value;
} }
<# <#