Allow disabling auto admin login

This commit is contained in:
Manuel Thalmann 2023-06-25 18:48:13 +02:00
parent c2c3210515
commit 45be15723e

View file

@ -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";