Windows Client OS

Configuring Auto Logon

Can I configure Windows 2000/XP/2003 to log me on automatically?

You sure can!

Old but nevertheless good. The auto logon can be accomplished by means of Registry modifying, or by use of 3rd-party tools.

Sponsored Content

Passwords Haven’t Disappeared Yet

123456. Qwerty. Iloveyou. No, these are not exercises for people who are brand new to typing. Shockingly, they are among the most common passwords that end users choose in 2021. Research has found that the average business user must manually type out, or copy/paste, the credentials to 154 websites per month. We repeatedly got one question that surprised us: “Why would I ever trust a third party with control of my network?

To configure auto logon through the Registry follow these steps:

  1. Open Registry Editor.

  2. In Registry Editor, navigate to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  1. Create or modify the following value (REG_SZ):

DefaultUserName

and enter the exact username you’d like to use.

Then, create or modify the following value (REG_SZ):

DefaultPassword

and enter the exact password you’d like to use.

Note: The password is stored in clear text, allowing anyone with access to the registry (either locally or remotely) to see your password. Use with extreme caution!

Next, create or modify the following value (REG_SZ):

AutoAdminLogon

and enter a value of 1.

Finally, create or modify the following value (REG_SZ):

DefaultDomainName

and enter the domain name you wish to logon to.

Note: As always, before making changes to your registry you should always make sure you have a valid backup. In cases where you’re supposed to delete or modify keys or values from the registry it is possible to first export that key or value(s) to a .REG file before performing the changes.

  1. Close Registry Editor and reboot the computer.

Note: As far as I know, this trick will NOT work if the user does not have a password. It will only work once, but for subsequent logons it will stop working.

In order to configure auto logon with a 3rd-party tool I recommend using Tweak UI from the Microsoft PowerToys suit: Free Tweaking Tools

Download TweakUI for Windows XP

Related articles

You might also want to read the following related articles:

Links

Rename or Delete Special Folders

Related Topics:

Live Webinar - Thursday, December 2nd! Active Directory Masterclass: AD Configuration Strategies for Stronger SecurityREGISTER NOW - Thursday, December 2, 2021 @ 1 pm ET

Active Directory (AD) is leveraged by over 90% of enterprises worldwide as the authentication and authorization hub of their IT infrastructure—but its inherent complexity leaves it prone to misconfigurations that can allow attackers to slip into your network and wreak havoc. 

Join this session with Microsoft MVP and MCT Sander Berkouwer, who will explore:

  • Whether you should upgrade your domain controllers to Windows Server
    2019 and beyond
  • Achieving mission impossible: updating DCs within 48 hours
  • How to disable legacy protocols and outdated compatibility options in
    Active Directory

Sponsored by: