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:

Download

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

Download

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

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

THANK YOU for your review!

Questions / Comments


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