Auto-login in Windows Server 2008

Does anyone know a (verified) method to cause a specific user to auto-login after a system reboot, that works on Server 2008?

I've tried tweaking some registry values (I don't have the link right now) and we've also tried a couple of programs (one free program didn't work, another one costs money).

Edit Since several people have asked for my reasons - I need to run Selenium web tests on a TeamCity build agent, and they don't work well when the build runs as a windows service. Running them in a user session solves the problem.


For a Windows 2008 domain member, add AutoAdminLogon as a string value (REG_SZ) with a value of 1 to the key

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Next, run the User Accounts control panel by typing control userpasswords2 in the Run command.

On the Users tab, uncheck the box "Users must enter a username..." and then add the username and password to autologon with.


You may try autologon form sysinternals. It permits you to make windows logon automaticaly under a specified account with the credentials encrypted.