Windows – Auto Logon Domain User on Startup

Last updated on November 4th, 2018 at 08:42 am

1. Login with the relevant user into Windows

2. Open CMD and run:

wmic useraccount where name='admin' get sid

Copy the SID string aside

3. Create a new text file (Registry Script) and rename it to: AutoStart.reg

Add these lines while you change only the relevant bold values:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ReportBootOk"="1"
"Shell"="explorer.exe"
"PreCreateKnownFolders"="{A520A1A4-1780-4FF6-BD18-167343C5AF16}"
"Userinit"="C:\\Windows\\system32\\userinit.exe,"
"VMApplet"="SystemPropertiesPerformance.exe /pagefile"
"AutoRestartShell"=dword:00000001
"Background"="0 0 0"
"CachedLogonsCount"="10"
"DebugServerCommand"="no"
"ForceUnlockLogon"=dword:00000000
"LegalNoticeCaption"=""
"LegalNoticeText"=""
"PasswordExpiryWarning"=dword:00000005
"PowerdownAfterShutdown"="0"
"ShutdownWithoutLogon"="0"
"WinStationsDisabled"="0"
"DisableCAD"=dword:00000001
"scremoveoption"="0"
"ShutdownFlags"=dword:00000027
"AutoAdminLogon"="1"
"DefaultUserName"="admin"
"DefaultDomainName"="domain.local"
"DisableBackButton"=dword:00000001
"EnableSIHostIntegration"=dword:00000001
"ShellCritical"=dword:00000000
"ShellInfrastructure"="sihost.exe"
"SiHostCritical"=dword:00000000
"EnableFirstLogonAnimation"=dword:00000001
"AutoLogonSID"="S-1-5-21-1429605073-########-3440955449-###"
"LastUsedUsername"="BrokerageTV01"
"IsConnectedAutoLogon"=dword:00000000
"DisableLockWorkstation"=dword:00000000
"DefaultPassword"="Your_Password"

 

4. Save the changes and run AutoStart.reg as administrator

5. Restart your PC and wait until user is automatically login to Desktop.

 

Enjoy 🙂