How to Setup Auto Login on Windows via Regedit
This is a complex and you need to know that if you damage the regedit of you PC, it may take you a long time to fix it again or worse rebuild it if the problem can’t be found. This method should be done after you have taken a window back up. So, the warning has been given now we can start.
Click Start, click Run, (or with the hotkey of Windows key+R) then type regedit. Next click OK. Or simply type regedit in windows Search and hit Enter.
Locate the following registry key:
Double-click the DefaultUserName entry, type the user name to log on with, and then click OK.
If DefaultUserName registry value name is not found, create a new String Value (REG_SZ) with value name as DefaultUserName.
Double-click the DefaultPassword entry, type the password for the user account under the value data box, and then click OK.
If there is no DefaultPassword value, create a new String Value (REG_SZ) with DefaultPassword as the value name.
Note that if no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon registry key from 1 (true) to 0 (false) to turn off the AutoAdminLogon feature.
Third, if your windows machine is on a domain otherwise move on to step 4:
In Windows, DefaultDomainName has to be specified as well, else Windows will prompt for invalid user name with the user name displayed as .\username. To do so, double click on DefaultDomainName, and specify the domain name of the user account. If it’s local user, specify local host name.
If the DefaultDomainName does not exist, create a new String Value (REG_SZ) registry key with value name as DefaultDomainName.
Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.
If there is no AutoAdminLogon entry, create a new String Value (REG_SZ) with AutoAdminLogon as the value name.
If it exists, delete the AutoLogonCount key.
Quit Registry Editor.
Click Start, click Restart, and then click OK
That’s it you have now setup your machine for auto login via the regedit, there is an easier way in windows and that can be done from the user account setting. Click on the link below to go to my guide on how to do that here, How to Setup Auto Login on Windows 7, 8, 8.1 and 10 in a few easy steps