1

On my Windows 10 Home pc I have two users, both without password. To disable the automatic login feature, the usual hack was to alter the registry and set Enabled to 1 in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch. See for instance here: How to prevent automatic login of the last user in Windows 10?

This has been working for some time, but after the recent Fall Update, it no longer works, and the last user is automatically logged on again. Even when logging off before powering off the pc.

Does anyone know of a (new) workaround, preferably not involving passwords?

Berend
  • 3,192

2 Answers2

0

This blog posts suggests disabling "Use my sign-in info to automatically finish setting up my device after an update or restart" in user account options.

https://keegansdiet.wordpress.com/2017/11/09/login_auto-dis/

Possibly this would need to be done for all user accounts.

hayalci
  • 1,722
0

Four years later I stumbled upon the answer here. The registry hack I mentioned in my question in fact still works, but upon logoff, Windows always resets the value of Enabled to 0.

To prevent this, the Set Value permission of the UserSwitch key should be denied for the SYSTEM user:

  • Right click the registry key UserSwitch and select Permissions
  • Click on Advanced and then on the Disable inheritance button; if you are prompted with two options now, choose the first one (Convert inherited permissions into explicit ones for this object)
  • At the top of the dialog, change the owner from SYSTEM to the group Administrators.
  • Select the group Administrators and give it full control
  • Edit the entry for SYSTEM, select Type: Deny, and Applies to: This key and subkeys.
  • Click on Show advanced permissions. Click on Clear all, and then check only the Set value checkbox

Another user reports having to remove the UserSID string value from UserSwitch as well.

The identical answer is here as well.

Berend
  • 3,192