Windows 10 1809 Domain autologin task not working

This is a windows 10 1809 image. 

I have a autologin i am trying to get working with no luck. I found the script that seems to be used often for this. When the system reboots to login to the domain, i get the windows login error that the password is incorrect. It joins the domain with a VBS script task no problem. Now i want it to login as a Domain Admin and be sitting a the desktop waiting on the IT staff to finish up. 

I am using this script in a task that runs BEFORE my join domain task. After it reboots i get the incorrect password error and its showing the local admin account. 

Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d domainAdmin /f

Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d password /f

Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f

Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain.org /f

Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_SZ /d 0 /f

Any advice on how to get past this. 

0 Comments   [ + ] Show comments

Answers (1)

Posted by: SMal.tmcc 1 year ago
Red Belt

Your AutoLogonCount needs to be a dword and have a count in it.

reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 10 /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /d domain /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d domain_user /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d domain_user_password /f

cscript.exe c:\windows\w2d\join_domain.vbs domain domain_user domain_user_password

  • I run this as a bat script and reboot upon completion - SMal.tmcc 1 year ago
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ