To force windows to automatically logon you can perform one of the following ways:
- From control userpasswords2 command- Windows XP:
- Click Start, click Run, and type control userpasswords2.
- Uncheck the “Users must enter a username and password to use this computer” check box. Click Apply.
- Enter the user name and password you wish to automatically log on with, and then click OK. Click OK again and you’re all done.
- From NETPLWIZ command– Windows Vista
- Click the Start button, type netplwiz in the search box, and then press enter.
- Uncheck Users should enter a username and password to use this computer, and then press OK
- Type the username and password for the user you want to automatically logon to Windows Vista when it boots up and press OK
- Modifying Winlogon registry values:
- Start> Run> and type “regedit” then hit enter
- Locate the following registry key:
- In that key there are four values that are important:
AutoAdminLogon – A string value. Yes a string value. That is set to 0 or 1. If the value is 1, then the next time windows boots it will attempt to login with the credentials provided in the values shown below.
DefaultUserName – Username used to automatically login with.
DefaultPassword – Password used to automatically login with. Careful here. This is left in the registry unencrypted and easily read by anyone with an administrator account
DefaultDomainName – The domain name used when automatically logging in. Set to the name of the current computer name if the machine is not joined to a domain.