42 thoughts on “How to prevent Windows 8 from automatically logging in the last user

  1. Cookies

    Hey,

    I’ve been following this blog for a couple months now, you have really cool tips and tricks.
    One thing, as another user commented on another post, you should explain the manual process completely, then have a ready-to-use scripts sections for the casual folks.

    Call me lazy, but I hate having to download the .zip to read the .txt files and cmd’s then having to delete everything just to know what to do manually.

    Reply
  2. Alex

    Maybe some1 is interested in changing default windows 8 fonts? Here’s an app http://www.mediafire.com/?v8uak75ej52u7jm

    Sorry for off-topic.

    Reply
  3. Me

    If you use this, It will break the windows 8 store from being able to log you on and it will break the remote desktop connection credentials to do remote desktop connections, also the UNdo script did NOT work, it refused to change it even after right clicking and run as administrator, I just spent the last half hour trying to figure out what went wrong and this was the only tweak I did all day thank GOD, so I could figure out what went wrong and where, Great script but did NOT work at all for critical things like the rdc and store apps. Thank you anyway,,,Love your site and use many of the tools.

    Reply
    1. Sergey Tkachenko Post author

      I tried it and see no such behavior. You may be mistaking something else you did and blaming it on the script. I am sorry, anyway. There is no any side effect from this scripts

      Reply
      1. Patrick

        Same problem here… No app login (store, calendar, …) with my microsoft account possible with this tweak. And everytime the event log tells about an application error in CredentialUIBroker.exe :(
        For me the undo script also didn’t work. I had to change the registry value on my own.

        For your information: I have two active local users for login.

        Reply
        1. Kevin

          Please help! the undo script doesn’t work, I tried modify the registry by my own, and it says “Cannot edit Enabled. Error writing the value’s new components”

          Reply
  4. Me

    More info for you, win 8 pro, multiple user accounts, everything turned off, location, live tiles, etc etc, port 3389 works fine for remote desktop, but I also have more than one server ported out to 3390, 3391, etc, and that was the one that would not work because it was saying the credentials, when I undid the script it worked, also the windows store would not let me log in no matter what I did, unless I switched to a Microsoft account instead of a local account, I never run a Microsoft account in win 8, only local, then I switched back again and it was the same thing, can’t sign in.
    I looked around online and can’t seem to find why it would do that? Thank you:)

    Reply
  5. Dajul

    Tried and working. Thanks!!!

    Reply
  6. sybozz

    Thanks!!! It works.

    Reply
  7. Miah C

    It worked…
    Until I shutdown my pc via the switch on my computer. After that it tried to login back to the last account.

    The DWORD was back to 0

    Reply
    1. Piotr

      Same problem here… At second start up it’s back to “normal”… :(

      Reply
  8. velaimpavida

    Finally! It works! It had been months that I waited this solution.
    (only works if the program is started for each user)
    Thank you!

    Reply
  9. ITGuy

    Hi Sergey,

    I have this issue in my Windows 8 laptop and finally found the value to turn it off by reading your post. One question I have:

    Why do you implement the script at the User Configuration\Windows Settings\Scripts\Logoff stage in GPO? Not all users can change the HKLM values.

    I recommend implementing the reg script at the Computer Configuration\Windows Settings\Scripts\Shutdown or Startup stage instead, so one GPO takes care of all users, regardless of their SID

    Reply
    1. Gaurav Kale

      That’s because if it’s enabled throughout the user session (at startup), “Run as different user” functionality in the context menu is broken and Explorer crashes.

      Reply
  10. Sia

    Sorry Sergey but your tool ´User List Enabler´ doesn´t work!
    After downloading, installing and reboot, myPC goes to the latest user at startup like before!

    Reply
    1. Sergey Tkachenko Post author

      Which edition of Windows 8 you have? Pro or just Windows 8?

      Reply
      1. Sia

        No Pro, just Windows 8.

        Reply
        1. Sergey Tkachenko Post author

          It looks like it does not support Group Policy settings. I will implement an alternative way to fix the issue.

          Reply
  11. Sia

    Thanks Sergey, It would be very nice.

    Regards, Sia

    Reply
    1. Sergey Tkachenko Post author

      fixed. I will cover hows new version works soon.

      Reply
  12. Sia

    Could you please release the fix so that we can use it?

    Thanks

    Reply
  13. Sergey Tkachenko Post author

    I have released it.
    User List Enabler 2.0 uses Task Scheduler way to perform the task mentioned in this article.
    The download link is the same: http://winaero.com/comment.php?comment.news.206
    Change log
    v2.0

    User list enabler now compatible with Windows 8 and Windows 8 Pro.
    Fixed a bug with user account which is not administrator.
    Application was rewritten from scratch.

    Please let me know if you have any issues with latest version.

    Reply
  14. ahmedhassan

    I have tried the tool but nothing happened my windows is winows 8 Enterprise x64

    Reply
  15. Sia

    Just installed and ran the tool. It Works perfect!

    Thanks

    Reply
  16. lim

    Does not work anymore since 07/04/2013. it could be because of an update. After the restart, the registry key is set to 0 when it should be 1 because of the script.

    Reply
    1. lim

      On windows 8 pro x64.

      Reply
  17. chestbuster

    I downloaded your tool but it didn’t work for me (Windows 8 32-bit Pro) but the Group Policy method worked perfectly so thanks, great info

    Reply
  18. chestbuster

    I seem to have an issue with the regedit and the gpedit method as well:

    I currently have 3 users on my machine; my admin account and 2 other basic user accounts for my parents. I’ve set the registry value to 1 and have kept it that way via the group policy script but only on my account! When I’ve checked the registry value on the other two accounts; they are always set to 0 and, seeing as how these two accounts are not administrator accounts, I can’t set the group policy script on them :D

    The result:

    After using my admin account and shutting down/restarting/logging off; the user list screen is displayed correctly. However, after the other two, non-admin accounts use the computer, Windows tries to login automatically to them on the next startup.

    Any suggestions? Contact me via e-mail, if possible: chestbuster1987@gmail.com

    Thanks in advance

    Reply
    1. Goldy

      I have same problem, any solution?

      Reply
      1. WubbleU-WubbleU

        The simplest way to make administrative changes within a user account is to give the user account administrative rights, make the necessary changes, then change the account back to a normal user.

        Reply
  19. Wim

    Your user list enabler (version 2) doesn’t work for me. Windows 8 pro, 64 bit, 2 administrator users.
    Actually it worked 2 times, after that it didn’t do anything. I reset to defaults and enable again many times, but it didn’t help. Please help me. What’s wrong?

    Wim

    Reply
  20. UME

    Hello !
    Worked fine for me with Windows 8.
    Now with 8.1, it doesn’t work at all. I tried on several PCs, but no success.
    It seems that the registry keys are now protected by the user “system”, and even Admins have not the right to change it !
    If you have a solution it would be great..
    UME

    Reply
  21. Graham Ansell

    Using the method of changing the Enable to 1 permanently seemed to cause problems , especially with UAC and entering a password for an administrative event.

    But I worked out how to fix this with out causing any other issues. This is what I did.

    1. Backup/export HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch
    2. Change the UserSwitch Enable value to 1
    3. F5 to refresh registry, then delete the UserSwitch Key
    4. From the Parent Key ‘LogonUI’, right-click it and select Permissions
    5. [Disable Inheritence] and select ‘Remove’
    6. Now edit each User, Advanced Permissions and uncheck/untick ‘Create Subkey’ (This stops the key being recreated).

    Reboot to test.

    If there is an issue you can just merge the Userswitch.reg file you backed up and then re-edit ‘LogonUI’ key and check create subkey. But I haven’t had any issues at all with this method. Works in Windows 8 and 8.1, Pro and Core.

    Good Luck

    Reply
    1. Sergey Tkachenko Post author

      Many thanks for this comment.
      I will try your trick and will update the tool.

      Reply
      1. Cosmyc

        I will be very pleased if you can update the tool.

        Reply
        1. Sergey Tkachenko Post author

          Sure, I have few ideas for the new version.

          Reply
    2. Shirou

      I have literally no idea what you wrote in couple steps here and I am pretty sure ive messed something up already, glad I backed up the keys but the permissions are messed up, next time please write in full word not “6. Now edit each User, Advanced Permissions and uncheck/untick ‘Create Subkey’ (This stops the key being recreated).” etc. because we aren’t wizards who can predict future from crystal ball of what do we have to do in each step…

      Reply
  22. Shirou

    Can you update this? You should write how to do it manually because the tools isn’t working anymore (Windows 8.1 over here…)

    Reply
  23. Shirou

    Ok the gpedit method seems to be working, I just had to add it to my user and it works on all users on whole machine :3

    Reply
  24. Hasse

    Great tool, worked like a charm (8.1 Pro x64).

    But im looking for a way to have the userlist allso appear when the system returns to the logon screen when the system i locked. My dear wife has a habit of loging me out of my facebook/linked in/and what not, on my account, rather then login in to her windows account :(

    Geting her to use her account will only work if she is made to, and that means presenting her with the correct option each time she sits by the computer. But as of now, it only happens upon boot.

    Any idéas?

    Reply
  25. Patrik

    For some reason this method does not work for Windows 8.1 (x64) for me. I can change the DWORD value to 1 and get the login page as I want but at the next startup it will be at 0 again. Even if I changed the “Users must enter a user name and password to use this computer”.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>