Tuesday, January 13, 2009

How to turn on automatic logon in windows XP

Normally, when I install a new windows, I create only an account without a password for myself. This make windows automatically logins to my account when restarting computer. However, after installing .Net framework 1.1, it will create aspnet_wp or ASP.NET Machine Account which turn off automatic login. You can easily delete the created account in user accounts in control panel and make your only account be automatic log on again. But, for the windows machine with multiple accounts or programmers who develop using .Net framework, deleting an account doesn't work. I offer two options.

First, using registry editor to add the following string values at key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
DefaultUserName : your username
DefaultPassword : your password
AutoAdminLogon : 1

Second, run 'control userpasswords2' using run command (start button -> run). Remove "Users must enter a user name and password to use this computer" from check box and click apply.

Resources:
[1] - http://www.mvps.org/marksxp/WindowsXP/aspdot.php
[2] - http://support.microsoft.com/kb/315231

No comments: