DEV Community

Cover image for Windows - Auto Login via the Registry
Dan Wheeler
Dan Wheeler

Posted on

Windows - Auto Login via the Registry

In the Windows registry editor (regedit), browse to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Enter fullscreen mode Exit fullscreen mode

Set string key 'AutoAdminLogon' to 1.

Set string key 'DefaultUserName' to the username you wish to use.

Set string key 'DefaultPassword' to the password of the account.

If on a domain, set string key 'DefaultDomainName' to the short name of the domain.

You can also set string 'DontDisplayLastUserName' to 0 if you don't wish to show the last logged on user at all.

If any of the above keys are missing, you may need to add them as new string keys.

Top comments (0)