Fix further typos

This commit is contained in:
Manuel Thalmann 2023-06-30 04:47:31 +02:00
parent a929310f77
commit 9d147090d9

View file

@ -185,8 +185,8 @@ class Context {
Set-ItemProperty $path -Name "AutoAdminLogon" 1;
Set-ItemProperty $path -Name "DefaultUserName" $user;
if ($password) {
Set-ItemProperty $path -Name "DefaultPassword" $password;
if ($pw) {
Set-ItemProperty $path -Name "DefaultPassword" $pw;
} else {
Remove-ItemProperty $path -Name "DefaultPassword";
}