Image Image Image Image Image Image Image Image Image Image

Technology Blog | JasonSlater.co.uk Technology News | May 22, 2013

Scroll to top

Top

4 Comments

How to tell Windows Server 2003 to Auto Logon

Sometimes it can be useful to have a computer automatically logon without user intervention. Before we go any further we must stress this can be a huge security risk so use the facility with care – use a dedicated username with restricted access privileges and audit logons to ensure it is being used appropriately. However, under certain circumstances auto logon can be very useful.

autologon How to tell Windows Server 2003 to Auto Logon

Go into the Registry Editor and navigate to

HKLM->Software->Microsoft->Windows NT->CurrentVersion->Winlogon

  • Set the AutoAdminLogon value to 1
  • Set the DefaultUserName and DefaultDomain to the username and domain you want to login with
  • Create a DefaultPassword REG_SZ string and put in the password – (this will not be encrypted)
  • You will need to reboot your computer for the changes to kick in

This can also be done in XP and there is more information on the Microsoft Site at How to turn on automatic logon in Windows XP

Comments

  1. @Chris Pallet: thanks for the command line to lock the workstation – I’ve incorporated that into my logon script.

    @Arild: many thanks for the heads up about using Sysinternals autolog.exe. It’s preferable to having the password stored in cleartext in the registry.

    Both working well on Server 2003 R2

  2. Dennis

    Thanks a bundle, the x64 hack worked perfectly for us on Windows 2003.

  3. Arild Skullerud

    For the x86 versions of Windows 2003 server I just use autolog.exe V2.10 by Sysinternals which encrypts the password (free download from Microsoft). Running rundll32.exe user32.dll, LockWorkStation at startup ensures it is locked.

    For x64 versions I additionally need to set 2 registry settings:
    HKLM->Software->Microsoft->Windows NT->CurrentVersion->Winlogon
    AutoAdminLogon = 1 (REG_SZ)
    ForceAutoLogon = 1 (REG_SZ)
    or it wouldn’t work for some reason. Took me a while to figure out how to get autologon working with x64 server and encrypted paswords.

  4. It does not eliminate the security implications of storing clear text passwords within the registry, but a technique we employ is to “lock the workstation” as part of the logon process for the machine.

    Via a command line, batch file or shortcut (without the quotes) “rundll32.exe user32.dll, LockWorkStation”.

Submit a Comment