Automatically logon to Windows with this Registry Hack

There are times when in it’s a pain having to type a password in order to logon to your Windows XP/Vista/7/8/10 machine.  AutoAdminLogon is idea for situations where you are operating in a secure environment, or where you are testing endless reboots and want auto login.  Although the technique is very different, the principle is the same as having a website remember your username and password.
NOTE:  The steps below are to modify the registry of your system,  You are not comfortable making these changes or are afraid that you might not get the steps done correctly then you shouldn’t follow the steps below.  These steps are provided to you with NO WARRANTY, I cannot be held responsible for any damage that might come from the changes suggested below.

Preparation for AutoAdminLogon Registry Settings

  1. Username – The name you would normally type in the logon box.  It does NOT have to be Administrator account.
  2. Password – OK this is the problem, you are going to expose the password in plain text, at least to the depths of the registry.
  3. DefaultDomainName – If the computer is joined to a domain then you will need to make an entry for this.

Instructions to Configure Auto Logon with Regedit

  1. Launch Regedit
  2. Navigate to:
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon
  3. Create a new String Value called DefaultPassword
    Right-click in the right pane, New > REG_SZ, name it, DefaultUserName.
    Set the string value to the password of the user account, for example “Pa$$w0rd” (this is case sensitive).
    DefaultPassword = “Pa$$w0rd”
  4. If there is an entry called “DefaultUserName” then you will just need to update the entry with the username of the account, if it isn’t already entered.  If the “DefaultUserName” value does not exist, then right-click in the right pane, New > REG_SZ, name it, DefaultUserName.
    Set the string value to the required UserName, for example SomeUser or Administrator (this is not case sensitive).
    DefaultUserName = “SomeUser”
  5. Optional Item: If your Windows machine has joined a domain, then create a String Value called DefaultDomainName.
    Right-click in the right pane, New > REG_SZ, name it, DefaultDomainName.
    Set the string value to the domain that the computer is a member of, for example “domain.lan” (this is not case sensitive).
    Set: DefaultDomainName = “domain.lan”

Here is a summary of the 4 registry REG_SZ values to enable Auto Logon

AutoAdminLogon = “1” Enabled  (Zero would mean turn off)
DefaultUserName = “SomeUser” (Your logon username)
DefaultPassword = “Pa$$w0rd” (Remember this or change)
DefaultDomainName = “domain.lan”  (Only needed if this computer has joined a domain)

auto logon - end result

Disable Auto Logon in Registry

It’s easy to disable the auto login with regedit; you just need to find, then change AutoAdminLogon from 1 to zero.  You can leave the other settings, especially if you change your mind later!

Leave a Reply