Hello, Mohsen98
Welcome to the Microsoft Community.
Hello, thanks for chiming in with your issue, it looks like your Windows 11 system is automatically logging in users on startup without displaying the user selection screen, regardless of whether you selected User 1 or User 2. This is usually because the auto-login feature is enabled or there is a setting that causes the system to automatically log in a user.
Now that you've tried some troubleshooting, there are a few additional checks we can make to resolve this issue.
- Disable automatic login for all users
First, make sure that automatic login is disabled for all users.
Press Windows + R, type netplwiz, and press Enter.
In the User Accounts window, select the user accounts that have automatic login enabled.
Uncheck the box next to “Users must enter a user name and password to use this computer”.
If the box is unchecked, it means that the system will automatically prompt for a user name and password. In this case, re-check the box.
Click Apply and then click OK.
Restart the computer and check if the problem is solved.
- Reset Group Policy settings
Sometimes, Windows' Group Policy settings may cause automatic logon behavior. Let's check the Local Group Policy Editor:
Open the Local Group Policy Editor by pressing Windows + R, typing gpedit.msc, and pressing Enter.
Navigate to: Computer Configuration > Administrative Templates > System > Login.
Look for the setting called “Do not show lock screen” and make sure it is set to Unconfigured or Disabled.
Also check the “Always log on with a password” setting (if any) and make sure it is set to Unconfigured. 3.
- Check the registry again
It looks like you've changed some of the keys in the registry, but there are a few settings that could be causing the automatic login behavior.
Navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Look for the entry called “HideFastUserSwitching”. If it does not exist, you can right-click an empty area in the right pane, select New > DWORD (32-bit) Value, and name it HideFastUserSwitching.
Set the value of HideFastUserSwitching to 0
Make sure to disable automatic login for specific users:
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Look for the AutoAdminLogon key and make sure that its value is set to 0. If it has a value of 1, change it to 0.
Check the DefaultUserName and DefaultPassword fields. If these fields exist, you can delete them to ensure that you are not automatically logged in for a particular account.
Disclaimer: Generally, modifying registry subkeys or work group is intended for advanced users, administrators, and IT Professionals. It can help fix some problems, however, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For further protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.
- Check for third-party software interference
Some third-party software (such as security software or login managers) can cause this problem by overwriting the system's login settings.
- Reset Windows settings (if necessary)
If none of the above methods resolved the issue, consider resetting Windows 11 settings:
Open Settings > System > Recovery.
In the Reset this PC section, select Keep my files.
This will reset your settings and may resolve potential issues related to user login.
Best regards
Bobhe | Microsoft Community Support Specialist