Pages

Wednesday, January 21, 2009

Automatic Logon in Windows Server 2003

How to turn on automatic logon in Windows

To avoid having to log on to Windows 2003 follow the steps below. Some might wonder why would anyone do such a thing as remove authentication from a server operating system. I think they are suffering from lack of imagination. :)
Running a Windows Server in a virtual machine environment is a perfect example where I don't want to type a password for all the virtual machines around.

To use Registry Editor (Regedt32.exe) to turn on
automatic logon, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type Regedt32.exe, and then press ENTER.
  3. Locate the following subkey in the registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  4. Double-click the DefaultUserName entry, type your user name, and then click OK.
  5. Double-click the DefaultPassword entry, type your password, and then click OK.NOTE: If the DefaultPassword value does not exist, it must be added. To add the value, follow
    these steps:

    1. On the Edit menu, click New, and then point to String Value.
    2. Type DefaultPassword, and then
      press ENTER.
    3. Double-click DefaultPassword.
    4. In the Edit String dialog, type your password and then click OK.
    NOTE: If no DefaultPassword string is specified, Windows automatically
    changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), disabling the AutoAdminLogon
    feature.

  6. On the Edit menu, click New, and then point to String Value.
  7. Type AutoAdminLogon, and then press
    ENTER.
  8. Double-click
    AutoAdminLogon.
  9. In the Edit String dialog box, type 1 and then click OK.
  10. Quit Registry Editor.
  11. Click Start, click Shutdown, and then type a reason in the Comment text box.
  12. Click OK to turn off your computer.
  13. Restart your computer. You can now log on
    automatically.

No comments: