Home  |  Services  |  About Us  |  Contact  | 

 

Brad's TechTips - Windows

[<< Full list of Windows tips.]
 
 
Windows: Configure Automatic Logon for Windows Server 2008, and for Windows Vista and Windows 7 clients that are connected to a domain

  1. Start RegEdit.
     
  2. Drill-down through the Registry to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
     
  3. Edit or create (of type String or REG_SZ) the DefaultUserName key.  Set its value to the desired user name for the automatic logontype the user name to log on with, and then click OK.
     
    (Note: You do not need to use the DomainName\UserName format.  Just enter the user name itself.)
     
  4. Edit or create (of type String or REG_SZ) the DefaultPassword key.  Set its value to the password associated with the user account.
     
    Warning: Password is clear-text.  Consider your environment and whether this presents a security risk.
     
  5. Edit or create (of type String or REG_SZ) the DefaultDomainName key.  Set its value to the down-level domain name, not the FQDN.  For example, specify MyDomain, not MyDomain.com or MyDomain.local.
     
    (Note: The DefaultDomainName key is distinct from the DomainName key which may also appear.)
     
  6. Edit or create (of type String or REG_SZ) the AutoAdminLogon key.  Set its value to 1.
     
  7. Delete the AutoLogonCount key if it is present.
     
  8. Close Registry Editor and restart your computer.  It should automatically logon with the desired account.
     

To disable automatic logon, clear the value of the DefaultPassword key and set the value of the AutoAdminLogon key to 0.