Windows 10/11: automatic login | Autologon - Autologin
To ensure that a specific user is automatically logged in when the computer is started, this can be stored as follows:
Variant 1: User accounts via GUI
By entering the command netplwiz in the search field, the user accounts can be called up:
Using the check mark, "Users must enter username and password" the password entry can be disabled, the check mark must be unchecked for this:
If this option is not available, which is since Windows 11 the case, it can be enabled in Registry Editor:
Path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device
The Value 2 have to be changed to 0
After "Apply" the setting, a dialog for "Automatic login" appears. Here the desired user name and the corresponding password can be stored:
By the way, the automatic login also works with a Microsoft account. (Tested under Windows 10)
Variant 2: Entry in the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
create the following keys:
DefaultUserName=Name
DefaultPassword=password
AutoAdminLogon=1
additionally the key:
ForceAutoLogon=1
can be set: This will cause a new login even if the user logs off.Alternatively, the .reg file provided here can be adapted and applied:
Instead of Name: the user name
Instead of Password the respective password,
For activating the settings, execute and confirm the reg file after editing.
Attention: the password is in plain text in the registry with this variant.
autologin.reg size:(0.38 kB): Download
Variant 3 autologon.exe (Sysinternals)
To write the password encrypted into the registry, the following Microsoft tool can be used:
https://technet.microsoft.com/de-de/sysinternals/autologon.aspx
The tool can also be executed via CMD:
Autologon.exe User domain password -accepteula
Attention: The return code is always 0, no error is returned via CMD ...

{{percentage}} % positive

THANK YOU for your review!
Top articles in this section
When cloning a large hard disk to a smaller one, I lost the recovery partition. So far not bad, Windows works without recovery partition, but in case of an error the partition helps to get the PC up and running again. To summarize, here's how it works with the recovery partition: As long as the partition is still there, it can be deactivated and written to a file. If the partition gets lost unexpectedly, it can be recovered from the Windows setup media. This post is also available as a video, se...
Anyone who frequently creates scripts or analyzes log files and handles different versions can compare them very quickly with the help of the right editor.
Windows drivers can of course also be managed via the command line. Microsoft offers two different tools for this purpose: The PnPUtil integrated in Windows and as part of the Windows Driver Kit (WDK) the command: devcon.