What to do if Windows 10 automatically logs in the last user

Ivan Jenic
by Ivan Jenic
Troubleshooting Expert
Passionate about all elements related to Windows and combined with his innate curiosity, Ivan has delved deep into understanding this operating system, with a specialization in drivers and driver troubleshooting. When he's not tackling... Read more
Affiliate Disclosure
Windows 10 automatically logs in the last user

If you have multiple user accounts and you’re using Windows 10 Technical Preview, an error might occur. That will force your computer to automatically login to the last-logged user account, without giving you a choice. This is a nuisance for users, as Windows 10 automatically logs in the last user.

But fortunately, there’s a fix for this issue.
windows feedback tool wind8apps

How to disable automatic login on Windows 10?

  1. Registry Editor Tweak
  2. Change Local Group Policies
  3. Check the correct option in secpol.msc
  4. Close programs and ALT+F4

Solution 1: Registry Editor Tweak

  1. Go to Search and type regedit
  2. Open Registry Editor
  3. Navigate to the following key:HKEY_LOCAL_MACHINESOFTWAREMicrosoft

regedit logonui windows 10 Windows 10 automatically logs in the last user

  1. Check the “Enabled” DWORD
  2. Set the value of Enabled to 1registry editor enabled 1
  3. Now we have to make sure that the value of Enabled will stay at 1 because there are certain processes in the computer that may automatically bring the value of Enabled back to 0, even if you manually set it to 1.
  4. Close Registry Editor and press Windows key and R at the same time
  5. In the Run window, enter the following and press Enter: netplwizrun netplwiz
  6. User Accounts windows will display with a list of all users of your computer
  7. Check Users must enter a user name and password to use this computer, and click OKuser accounts password Windows 10 automatically logs in the last user

Solution 2: Change Local Group Policies

If the Registry Editor fix didn’t work, you can try with changing one Local Group Policy. This solution is probably the best solution for this problem, and it should work on other versions of Windows, as well. Here’s what you need to do:

  1. In Search type edit group policy, and open Local Group Policy Editor
  2. In Local Group Policy Editor go to User Configuration, Windows Settings, and Scripts (Logon/Logoff)
  3. Click on Logoff and go to Properties -> click on Add
  4. Set Script Name to C:WindowsSystem32reg.exe
  5. Set Script Parameters to:HKLMSOFTWAREMicrosoftWindowsCurrentVersion
    UserSwitch v Enabled t REG_DWORD /d 1 /f

    userswitch enabled regedit windows 10 Windows 10 automatically logs in the last user

  6. Click OK and Close Local Group Policy Editor

Solution 3: Check the correct option in secpol.msc

  1. Press Windows Key and R and type secpol.msc
  2. Go to Local Policies -> Security Options -> Interactive logon: Don’t display last signed-in

The application secpol.msc isn’t in Windows 10 Home

Solution 4: Close programs and ALT+F4

  1. Close all applications.
  2. Press ALT+F4.
  3. Select Shut Down.

This tweak should solve your login problems, as Windows 10 automatically won’t log in the last user. If you have some questions or suggestions, please share it with us in the comments.


This article covers:Topics: