From 45be15723e42b5af4decc054ed2524a4857be99c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 18:48:13 +0200 Subject: [PATCH] Allow disabling auto admin login --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";