Skip to content

How to Set Up Auto Login on Windows 11

By Marlo Strydom

Share this post:

If you are the only person who uses your PC and it lives somewhere safe, typing a password every time it starts gets old fast. Auto login tells Windows to skip the sign-in screen and go straight to the desktop. It is a few minutes of setup, and there are three reliable ways to do it depending on how your account is set up and how comfortable you are with Windows settings.

The quickest method is the User Accounts panel: press Windows + R, type netplwiz, press Enter, select your account, and uncheck "Users must enter a user name and password to use this computer." If that checkbox is missing, turn off the Windows Hello-only setting first (covered below), or use Microsoft's free Autologon tool, which is the safest option.

Read this first: auto login removes the one barrier between a powered-on PC and everything on it. Anyone who switches the machine on lands in your account with full access to your files, email, browser, and saved passwords. Only set this up on a desktop in a physically secure place, like a home office. Do not use it on a laptop, a shared family PC, or any work machine. If the device holds anything sensitive, leave the sign-in screen on.

Before You Start

Two quick things make the rest of this easier. First, know which kind of account you have: a Microsoft account (you sign in with an email address) or a local account (username only, no email). The steps are the same, but Microsoft accounts on Windows 11 sometimes hide the netplwiz checkbox, which has a simple fix. Second, make sure you actually know your password, since every method asks you to confirm it. If you only ever use a Windows Hello PIN, look up your full account password before you begin.

Method 1: The User Accounts Panel (netplwiz)

This is the built-in way and the right starting point for most people. Nothing to download.

  1. Open the panel: press Windows + R, type netplwiz, and press Enter.
  2. Select your account in the list of users at the top.
  3. Uncheck the box labelled "Users must enter a user name and password to use this computer," then click Apply.
  4. Confirm your password: a small window asks you to type your password twice so Windows can sign you in for you. Enter it and click OK.
  5. Restart to test. The PC should now go straight to the desktop.

If the checkbox is missing

On Windows 11, that checkbox is often hidden when you use a Microsoft account with Windows Hello. To bring it back:

  • Open Settings > Accounts > Sign-in options.
  • Find "For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device" and switch it Off.
  • Sign out and back in, then reopen netplwiz. The checkbox will be there.

Method 2: Microsoft Autologon (Safest and Most Reliable)

Autologon is a small, free, official Microsoft tool from the Sysinternals suite. It is the method I recommend when netplwiz is being stubborn, because it stores your password in an encrypted form rather than in plain text, and it sets everything up correctly in one click.

  1. Download it from the official Microsoft Sysinternals page (search "Microsoft Autologon"), then unzip and run the program. There is no installer.
  2. Accept the licence the first time it runs.
  3. Fill in three boxes: your Username, the Domain (for a home PC this is your computer's name, which Autologon usually fills in for you), and your account Password.
  4. Click Enable. Autologon confirms it has turned on and encrypts the password into the registry for you.
  5. Restart to test. To turn it off later, run Autologon again and click Disable.

Method 3: The Registry (Advanced)

This is the manual version of what Autologon does, and it is worth knowing for tricky setups. The catch is that it writes your password into the registry in plain text, so only use it on a secure machine and prefer Autologon if you can.

Careful in here: editing the registry wrongly can cause problems elsewhere in Windows. Change only the values listed below, and consider backing up the key first (in Registry Editor, right-click the Winlogon key and choose Export).

  1. Open Registry Editor: press Windows + R, type regedit, and press Enter.
  2. Go to this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  3. Set the username: find or create a String value named DefaultUserName and set it to your account name (for a Microsoft account, this is the email address).
  4. Set the password: create a String value named DefaultPassword and set it to your password.
  5. Turn it on: find or create a String value named AutoAdminLogon and set it to 1.
  6. Restart to test. To undo it, set AutoAdminLogon back to 0 and delete the DefaultPassword value.

Stop the Password Prompt After Sleep

Auto login only covers a full startup. By default Windows still asks for your password when it wakes from sleep, which catches a lot of people out after they set this up. To skip that prompt too:

  • Open Settings > Accounts > Sign-in options.
  • Find "If you've been away, when should Windows require you to sign in again?"
  • Change it to Never.

If you also use a screen saver, open its settings and make sure "On resume, display logon screen" is unticked. With both of those done, the PC stays signed in whether it cold-boots or wakes from sleep.

Which Method Should You Use?

Method Best for Password stored as Difficulty
netplwiz Most people, first thing to try Encrypted Easy
Autologon When netplwiz hides the checkbox Encrypted Easy
Registry Advanced users, unusual setups Plain text Moderate

How to Turn Auto Login Back Off

Changed your mind, or moving the PC somewhere less private? Reversing it is quick. If you used netplwiz, reopen it and re-check the "Users must enter a user name and password" box. If you used Autologon, run it again and click Disable. If you edited the registry, set AutoAdminLogon to 0 and delete the DefaultPassword value. Any one of these brings the normal sign-in screen straight back.

Share this post: