If your computer has multiple user accounts and you want a specific user to log in automatically after a restart, follow these steps.
Step-by-Step Instructions
-
Open the Registry Editor as Administrator:
PressWin + R
, typeregedit
, and hit Enter. -
Navigate to the Following Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
-
Add or Modify the Following Values:
-
AutoAdminLogon:
Set this to1
. This enables automatic login. -
DefaultUserName:
Enter the username you want to log in automatically. -
DefaultPassword:
Enter the password for the user.- If there’s no password, leave this field blank.
-
Optional: Handling AutoLogonSID Conflicts
Sometimes, there may be an existing value in the same path called AutoLogonSID. This value contains the unique identifier for a user account. If this value conflicts with the account you want to set for automatic login:
- Open the AutoLogonSID value.
- Delete its content (leave it blank).
This ensures that the user you configured logs in automatically without conflict.
Final Step: Restart the Computer
After making these changes, restart your computer. The specified user account should now log in automatically.