diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 6943dc63..ec3a414e 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -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"; }