Created
November 20, 2014 23:08
-
-
Save mwrock/5fab34c8d1a70745e46b to your computer and use it in GitHub Desktop.
Removing autologon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$winLogonKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" | |
@("DefaultUserName","DefaultDomainName","DefaultPassword","AutoAdminLogon") | % { | |
Remove-ItemProperty -Path $winLogonKey -Name $_ -ErrorAction SilentlyContinue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment