diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 3ed8e1ed..eba59b3b 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -136,7 +136,7 @@ class Context { { param ($logon) $path = $logon.PSPath; - Remove-ItemProperty $path -Name "AutoAdminLogon"; + Set-ItemProperty $path -Name "AutoAdminLogon" 0; Remove-ItemProperty $path -Name "DefaultDomainName"; Remove-ItemProperty $path -Name "DefaultUserName"; Remove-ItemProperty $path -Name "DefaultPassword";