06/13/2019 715 views

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


All Answers


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

Answered 06/13/2019 by: SMal.tmcc
Red Belt

  • I run this as a bat script and reboot upon completion