Windows Server

How to Set up Auto login for Windows Server 2012/2016

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.

    1. Run exe
    2. Navigate to:
      HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon
    3. Set or create the following keys:
      (DWORD) AutoAdminLogon = 1
      (String) DefaultUserName = Your user name
      (String) DefaultPassword = Your password
    4. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *