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

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 | Übersetzung Deutsch |🔔 | Comments:0

install driver via command line cmd: inf | Windows | runas: Command or Program: Run as other user

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 video, se...

the 4 best tools to compare two text files

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. 

install driver via command line cmd: inf

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.

Questions / Comments

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