How to Set Up Automatic Login for a Specific User in Windows

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

  1. Open the Registry Editor as Administrator:
    Press Win + R, type regedit, and hit Enter.

  2. Navigate to the Following Path:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
    
  3. Add or Modify the Following Values:

    • AutoAdminLogon:
      Set this to 1. 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:

  1. Open the AutoLogonSID value.
  2. 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.

1 Like

Does this work with Win 10 and Win 11?

Yes, it does.