Allow disabling auto admin login
This commit is contained in:
parent
c2c3210515
commit
45be15723e
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue