Last active
August 29, 2015 13:57
-
-
Save wormeyman/9770636 to your computer and use it in GitHub Desktop.
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
# Updated: 2014-04-21 | |
# Eric S. Johnson | |
# Sets The Registry on Windows 7 to Allow Auto Login of checkin user. | |
# Reference: http://superuser.com/questions/28647/how-do-i-enable-automatic-logon-in-windows-7-when-im-on-a-domain/28654#28654 | |
#The Code: | |
Set-ItemProperty -Name AutoAdminLogon -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value 1 #Allow Auto Login | |
Set-ItemProperty -Name DefaultUserName -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value username #Set the User Name | |
Set-ItemProperty -Name DefaultPassword -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value password #Set the Password | |
Set-ItemProperty -Name DefaultDomainName -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value domain #Set the Domain to your organizations domain name | |
Remove-ItemProperty -Name AutoLogonCount -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Force #Remove the count of auto login (probably will fail with error) | |
Remove-ItemProperty -Name AutoLogonChecked -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Force #Remove the checkbox (probably will fail with error) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment