Windows 10 Automatically Logs in Last User: How to Fix it

Disable automatic login via the Registry

Reading time icon 2 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • If Windows 10 automatically logs in the last user, it's usually the misconfigured settings or a bug in the OS to blame.
  • To fix things, modify the relevant DWORD in the registry.
  • A few users managed to get things running after changing the Local Security Policy.
fix windows 10 automatically logs in last user

If you have multiple user accounts, an error might occur with the sign-in. A few users found that Windows 10 automatically logs in the last user without giving a choice.

The problem affects all versions of the OS and is even found on the latest iteration, i.e., Windows 11. To fix things, you only need to disable automatic login in Windows 10. Keep reading to find out how!

How do I stop Windows 10 from automatically logging in to the last user?

Before we head to the tricky solutions, try these quick ones:

  • Close all applications before shutting down the PC.
  • Install the latest Windows updates.

If none work, head to the fixes listed next.

1. Modify the Registry

  1. Press Windows + R to open Run, type regedit, and hit Enter.
  2. Navigate to the following key:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
    Windows\CurrentVersion\Authentication\LogonUI\UserSwitch
  3. Double-click the Enabled DWORD, set the Value data to 1, and click OK to save the changes.registry editor enabled 1
  4. Press Windows + R to open Run, type netplwiz, and hit Enter.run netplwiz
  5. Check Users must enter a user name and password to use this computer, and click OK.user accounts password Windows 10 automatically logs in the last user

When Windows 10 automatically logs in the last user, you can turn off auto login in Windows 10 using the Registry. You can also disable automatic login via the Local Group Policy Editor (gpedit.msc).

2. Configure Local Security Policy

  1. Press Windows + R, type secpol.msc, and hit Enter.
  2. Go to Local Policies, select Security Options, and then double-click on Interactive logon: Don’t display last signed-in.don't display to fix windows 10 automatically logs in last user
  3. Select Disabled, and click Apply and OK to save the changes.

Another quick workaround when Windows 10 automatically logs in the last user is reconfiguring the Local Security Policy. Once done, you shouldn’t face sign-in issues on Windows anymore.

Before you leave, find out how to set up passwordless sign-in on Windows.

If you have questions or suggestions, please share them with us in the comments.

More about the topics: sign-in issues, windows 10 fix