Apr 22, 2009

Windows Server 2003 - AutoAdminLogon

AutoAdminLogon is pretty handy for those instances where a computer or server must be logged in at all times with an interactive session.  Microsoft has documented a few changes that need to be done in the registry to enable this feature, http://support.microsoft.com/kb/324737

Please note, if your setting up AutoAdminLogon for a workstation or server, don't forget to set the 'DontDisplayLastUserName' key to '0'.  If it is non-existant or set to '1' the server will remember whoever was logged into the console last, over-riding the 'DefaultUserName' key that was set in the registry.  I'm not sure why Microsoft didn't include this in their documentation, but it needs to be there.

For the servers that I've set this up on, I've also added a .bat file that will lock the screen after logging in.  Create a bat file and put the following in it.
rundll32.exe user32.dll, LockWorkStation
Put the bat file in the startup items folder.  Microsoft recommends you restart your server at that time to test it out.  If you don't get the chance to restart it, make sure you test it out at some point.

No comments: