After imaging, login to machine, then reboots one last time.
Our last post-install task in our image is to join the domain, then reboot. It will reboot and end up at the domain login. However, upon first login, a white screen pops up and then reboots again. I'm guessing it's KACE cleaning up and finalizing things, but is there a way to have this happen before it reboots after joining the domain...or to make it so we don't have to manually login to complete this process? I'm assuming adding some sort of registry 1 login count could work, but seems like a stupid way of dealing with something that KACE should really finish by itself after my last post-install task.
Any suggestions?
Thanks
Thanks
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
SMal.tmcc
9 years ago
I add reg settings to the post task to have it autologin one time after it joins to take care of this
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 1 /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 domainuser /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d password /f
start /wait cscript.exe c:\windows\w2d\join_domain.vbs acad.domain.edu domainuser password
c:\windows\w2d\ksleep 5
Comments:
-
prior to joining the domain I had a local user login count of 10 in the answer file - SMal.tmcc 9 years ago
Posted by:
jegolf
9 years ago
You have to add an autologon to your sysprep answer file. If you've already sysprepped and captured your image you can alter the unattend.xml file in c:\windows\panther by browsing the k-image or mounting your wim. There was an update at one point that added the task engine which started to require one additional autologon for one of those steps so we had to up our count..
Comments:
-
I have the sysprep answer file set to 9 auto logins. The last 2 scripts set to run in my post-install task is to disable auto logins, and then join the domain and reboot. However, it seems it still needs 1 login afterwards for it to finish or clean up. - sfigg 9 years ago