Enable Automatic Logon in Windows
If you want to automate the login process and allow programs to start automatically after user login, you can configure Windows to sign in a specific user automatically at system startup.
Windows XP / Server 2003
Run the following command:
control userpasswords2
Windows 7 / Server 2008 and newer
Run the following command:
netplwiz
Automatic logon setup
- The Users and Passwords dialog box will open.
- In the Users tab, uncheck the box labeled “Users must enter a user name and password to use this computer”.
- Click OK.
- A window named Automatic Logon will appear: enter the username and password, then confirm the password.
- Click OK to close all dialogs.
At the next reboot, Windows will log in automatically with the configured user.