Auto Login After GPUPDATE /FORCE
I have the following script for auto login:
net start w32time
%SystemRoot%\system32\w32tm /config /update /manualpeerlist:hawaiicounty.gov /syncfromflags:manual
c:\windows\w2d\ksleep 10
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 username /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d password /f
This is my gpupdate /force bat file:
gpupdate /force /logoff
wuauclt /a /Detectnow
wuauclt /r
For my post-install tasks, I enable local admin, enable auto login, join domain, activate windows and gpupdate. However, after logging off, the computer is stuck at the ctrl-alt-delete screen and doesn't auto login with the credentials in my gpupdate post install task.
Anyone know why? Thanks!
net start w32time
%SystemRoot%\system32\w32tm /config /update /manualpeerlist:hawaiicounty.gov /syncfromflags:manual
c:\windows\w2d\ksleep 10
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 username /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d password /f
This is my gpupdate /force bat file:
gpupdate /force /logoff
wuauclt /a /Detectnow
wuauclt /r
For my post-install tasks, I enable local admin, enable auto login, join domain, activate windows and gpupdate. However, after logging off, the computer is stuck at the ctrl-alt-delete screen and doesn't auto login with the credentials in my gpupdate post install task.
Anyone know why? Thanks!
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
Is it not rebooting with your gpupdate batch script? If that is when it happens check the "reboot required" for that batch task.
Comments:
-
I checked the "reboot required" for the gpupdate bat task and now it's in a loop. It keeps running gpupdate and stops at the ctrl-alt-del screen. - lnovak 8 years ago
Posted by:
lnovak
8 years ago
Posted by:
liam.creaser
8 years ago
Posted by:
chucksteel
8 years ago