Windows 10/11: automatic login | Autologon - Autologin

Diese Seite gibt es auch in Deutsch

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

In order to log on a user automatically with Windows, the following entries are needed in the registry, these can be entered directly in the registry under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
create the following keys:
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:

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 ...

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Publication: 2022-11-25 from Bernhard 🔔

Top articles in this section

Windows : create a missing recovery partition
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 vide...

Windows 11 (10) without Microsoft Account : local - Offline Profile
Not everyone wants to use a Microsoft account when using Windows. Depending on the Windows edition, an offline account can be set up more or less easily. In the new Windows Pro editions, there is the option "Offline account", in the Windows Home editions, an offline account can only be set up if there is no Internet connection. In future Windows versions, the behavior could probably change.

Windows 11 22H2 (Build: 22621.1194) : show current version
Build means the kernel version of Windows. How current the Windows 10 or Windows 11 installation is, can be seen by the build number used.

Questions / Comments

By continuing to browse the site, you agree to our use of cookies. More Details