How to Autologin to Windows 11
Use netplwiz on a local account or on a Microsoft account with password sign-in enabled. If the checkbox is missing, fix Windows Hello first, then set AutoAdminLogon or use Autologon. This means Windows saves sign-in details so the PC can reach the desktop without prompting for a password. This guide shows the fastest path for local accounts, Microsoft accounts, and domain accounts, plus the fixes for Windows 11 when it hides or ignores the setting.
Automatic sign-in stores the credentials Windows needs so the desktop can load without a prompt. It is convenient on a personal PC, but it reduces security because the sign-in data remains on the system. Windows 11 may also hide the netplwiz option when passwordless sign-in or Windows Hello is active.
What do you need before you turn on autologin?
You need an administrator account, the exact account name Windows should use, and the current password if you are using registry-based autologin. You also need access to netplwiz or regedit. For Microsoft accounts, the Windows Hello or passwordless sign-in setting may need to be changed first.
- An administrator account on the PC.
- The exact account name you want Windows to sign in with.
- The current password for that account if you use registry-based autologin.
- Access to netplwiz or regedit.
- For Microsoft accounts, Windows Hello or passwordless settings you can change in Settings.
- For domain accounts, the domain name or local computer name.
Which Windows 11 autologin method fits your setup?
The best method depends on the account type and the symptom. Use netplwiz for local accounts whenever possible. Use regedit when the checkbox is hidden or when Windows keeps undoing the setting.
| Scenario | UI path | Preferred method | Exact key/value to check | First troubleshooting check |
|---|---|---|---|---|
| Local account | Win + R > netplwiz | netplwiz | Clear the “Users must enter a user name and password…” prompt. | If the checkbox is hidden, disable passwordless sign-in first. |
| Microsoft account | Settings > Accounts > Sign-in options then netplwiz | netplwiz after a Hello/passwordless change | DevicePasswordLessBuildVersion = 0 | Confirm Windows Hello or passwordless sign-in is no longer hiding the box. |
| Domain-joined PC | Win + R > regedit > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon | regedit | AutoAdminLogon, DefaultUserName, DefaultDomainName, DefaultPassword | Verify the domain name matches the domain, not the computer name. |
| Missing netplwiz checkbox | regedit first, then netplwiz | regedit | HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device and DevicePasswordLessBuildVersion = 0 | Check whether passwordless sign-in is still active. |
| Autologin fails after reboot | regedit > Winlogon | regedit | AutoLogonCount and AutoAdminLogon | Look for a stale count or a value that turns autologin off. |
| Security-conscious setup | Do not use registry autologin | Manual sign-in | Avoid storing DefaultPassword at all. | Confirm the device is not shared or portable. |
Should you use netplwiz or regedit for autologin?
For most personal PCs, start with netplwiz. Use regedit only when the checkbox is missing or Windows keeps reverting the change.
What should local accounts use?
Local accounts should usually use netplwiz. It is the simplest path and avoids unnecessary registry editing. If Windows 11 hides the checkbox, restore the option first, then return to User Accounts and clear the password prompt.
What should Microsoft accounts use?
Microsoft accounts can use netplwiz, but only after Windows Hello or passwordless sign-in is adjusted. If you use registry-based autologin, DefaultUserName should match the full Microsoft account email address.
What should domain-joined PCs use?
Domain-joined PCs usually need the registry method. In that case, DefaultDomainName should be the domain name, not the computer name. Use the computer name only for local accounts.
What is the safest choice?
The safest choice is not to store DefaultPassword at all. Registry autologin is convenient, but it weakens security and is a poor fit for shared or portable devices. If convenience matters less than protection, keep the standard sign-in flow.
How do you auto login to Windows 11 with netplwiz?
netplwiz is the cleanest way to remove the password prompt for a local account, and it can also work for some Microsoft accounts after Windows Hello or passwordless sign-in is adjusted. If the checkbox is hidden, restore it first, then restart and verify that Windows reaches the desktop without prompting.
- Open User Accounts. Press Win + R, type netplwiz, and press Enter. This opens the Control Panel user accounts tool that controls the sign-in prompt.
- Restore the checkbox. If the “Users must enter a user name and password…” box is missing, open regedit and go to
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\PasswordLess\Device. Set DevicePasswordLessBuildVersion to 0. - Disable the prompt. Return to netplwiz, select the account, and clear the password prompt box. Sign in when asked, then restart to verify that Windows reaches the desktop without asking for a password.
If a Microsoft account still hides the checkbox after a restart, open Settings > Accounts > Sign-in options and turn off the Windows Hello sign-in requirement or the passwordless sign-in option that controls the prompt, then check netplwiz again.
How do you set autologin in Windows 11 with regedit?
regedit is the right choice when netplwiz is unavailable or when the account setup requires explicit values. The main registry location is HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon. There, AutoAdminLogon must be set to 1, and the account name, password, and domain must match the actual sign-in target.
- Open Winlogon. Press Win + R, type regedit, and press Enter. Then browse to
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon. - Set the logon values. Create or edit AutoAdminLogon and set it to 1. Add DefaultUserName, DefaultPassword, and DefaultDomainName if needed.
- Match the account exactly. Use the full Microsoft account email address for DefaultUserName when you are automating a Microsoft account. Use the domain name in DefaultDomainName for domain accounts, or the computer name for local accounts.
- Enter the password carefully. Store DefaultPassword as a plain text string value. Reboot right away to confirm the setting, because the password is readable locally and should not be left wrong for long.
Picture a workgroup PC with a local account named Alex. If DefaultUserName points to a different account, Windows may keep showing the lock screen instead of signing in automatically.
Why is autologin in Windows 11 not working?
If autologin works once and then stops, the most common causes are AutoLogonCount, a Windows Hello change, sleep behavior, or an account rename. Start by checking the Winlogon values, then confirm the sign-in path still matches the current account.
- Clear the count limit. In regedit, return to
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon and delete AutoLogonCount if it exists. - Keep the main setting enabled. Confirm AutoAdminLogon is still set to 1.
- Check the sign-in path. Make sure Windows Hello is not forcing a different sign-in flow, and confirm that sleep or other boot-time prompts are not interrupting the normal boot sequence.
A common first-timer mistake is changing the password in Windows after enabling registry autologin and leaving DefaultPassword unchanged. The next boot then fails, because the stored value no longer matches the current account password.
Which setup mistakes can stop Windows 11 autologin?
The biggest mistakes are entering the wrong account name, leaving DefaultPassword stale after a password change, and assuming a Microsoft account will behave like a local account while Windows Hello or passwordless sign-in is still active. Shared machines are also a poor fit for registry autologin.
To reverse it, clear AutoAdminLogon, remove the password value, and restore the normal sign-in prompt.
What are the most common Windows 11 autologin questions?

Frequently asked questions
How do I auto login to Windows 11?
Use Win + R, open netplwiz, and clear the password prompt for the account. If the checkbox is hidden, set DevicePasswordLessBuildVersion to 0 in regedit, then return to netplwiz and restart the PC to verify the change.
How do I automatically log in to Windows 11 without a password?
For a local account, the usual path is netplwiz. For registry-based sign-in, use HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon, set AutoAdminLogon to 1, and store the password in DefaultPassword. That keeps sign-in automatic but weakens security.
How do I set autologin in Windows 11 using regedit?
Open regedit as an administrator, go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon, then set AutoAdminLogon to 1. Add DefaultUserName, DefaultPassword, and DefaultDomainName when needed, then reboot.
How do I auto login to Windows 11 with a local account?
Use netplwiz first, because it is the simplest way to remove the password prompt for a local account. If the checkbox is missing, set DevicePasswordLessBuildVersion to 0 and try again. That usually restores the option on Windows 11 systems that hide it.
Can I use autologin in Windows 11 with a Microsoft account?
Yes, but Windows Hello or passwordless sign-in can hide the netplwiz checkbox. Go to Settings > Accounts > Sign-in options, change the Windows Hello sign-in requirement or passwordless sign-in setting if needed, and then use netplwiz. If you use the registry method, the account name should be the full Microsoft email address.
How do I set a PC to auto login safely?
The safest answer is to avoid storing a password in DefaultPassword at all. If you still need convenience on a personal PC, keep the machine physically controlled, use a local account, and be ready to reverse AutoAdminLogon if the device becomes shared or portable.
What should you verify first?
- Confirm the path. Verify
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon contains the expected values. - Verify the account. Check DefaultUserName and, when needed, DefaultDomainName.
- Restart once. Reboot and watch whether Windows reaches the desktop without asking for a password.
- Recheck after a change. If you change the password, update DefaultPassword immediately so autologin keeps working.






