In this blog we see how to set automatic login for windows server 2012 and 2016.
You can use the Registry key technique.
To do this you will need to have an account with a password for this to work.
-
- Run exe
- Navigate to:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon
- Set or create the following keys:
(DWORD) AutoAdminLogon = 1
(String) DefaultUserName = Your user name
(String) DefaultPassword = Your password - Now restart and lets to see it works!
Another Option
You can also do this using PowerShell
Simply Type:
PS:> $RegPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
PS:> Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String
PS:> Set-ItemProperty $RegPath "DefaultUsername" -Value "YOURDOMAINNAME\Administrator" -type String
PS:> Set-ItemProperty $RegPath "DefaultPassword" -Value "YOURPASSWORD" -type String
By following above steps you can set auto login for windows server 2012 and 2016.