During system imaging we are installing several applications that require a reboot during the Post Install Tasks.  When the box comes up because of a "Interactive Logon" group policy it requires you to click OK to the message before it can log back in and continue the Post Install tasks.  This adds time to the entire process and isn't completely automated because it requires user intervention.  Anyone have an idea of how we can overcome this automation road block?
1 Comment   [ - ] Hide Comment


  • We have the same issue - GPO for legal text which prevents auto logon. Essentially what we do is we have 99 auto logons set at the start, allow enough of these to run so that the post-install tasks will complete uninterrupted. We then delete the auto logon registry keys (as another post-install task) and join the domain AT THE END. The last thing we do is join the domain because once you get there, there's no going any further.
    Hope this helps.
Please log in to comment

Answer this question or Comment on this question for clarity


this is how you set autologin and disable the policy script

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 DefaultDomainName /d domain /f

reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d User /f

reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d Password /f

reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v legalnoticecaption /f

reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v legalnoticetext /f

shutdown -r -f -t 1

Answered 08/03/2016 by: SMal.tmcc
Red Belt

Please log in to comment