Ever tried to do an OSD with System Center Configuration Manager 2007 and have it fail "Task sequence cannot continue after reboot because TS Manager is not configured to auto-start or GINA is not installed?" If so then check out this tip from Frank Rojas on why this may happen and how you can fix it:
Issue: When trying to perform an OSD Task Sequence using SCCM 2007, the deployment fails, usually after it has successfully formatted the drive, dropped the image on the PC, and scanned for drivers.
Looking at the SMSTS.log, the following error is logged:
Task sequence cannot continue after reboot because TS Manager is not configured to auto-start or GINA is not installed TSManager CheckForRebootRequest(&bRebootInitiated), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\engine.cxx,274) TSManager Fatal error is returned in check for reboot request of the action (Restart Computer). Unspecified error (Error: 80004005; Source: Windows TSManager An error (0x80004005) is encountered in execution of the task sequence TSManager
Cause: This issue is caused because the "Setup windows and ConfigMgr" task has either been removed, disabled, or has been moved to the wrong place in the Task Sequence.
The "Setup windows and ConfigMgr" task performs several tasks that prepares the PC from going from WinPE to the Windows Setup, including modifying boot managers to boot to the correct partition. Once it finishes preparing the PC, this task then reboots the PC at the proper time to start Windows Setup or Mini-Setup. If this task is removed, it will cause the deployment to fail because the PC was not properly prepared.
Resolution: For these reasons, the "Setup windows and ConfigMgr" task should never be removed, disabled, or moved to another place other than the default in the Task Sequence. Moving it to another place in the Task Sequence may cause the PC not to be prepared or rebooted at the correct time, causing the deployment to fail.
The "Setup windows and ConfigMgr" task should also not be marked as Continue on Error because if this task does error out, the deployment will probably fail anyway.
Keywords: sccm2007 Operating System Deployment
J.C. Hornbeck | Manageability Knowledge Engineer
But what if its a custom task sequence?
Great information! ...But what is the default location for "Setup windows and ConfigMgr" task? If it has been moved we may not know where it came from originally.
Found it! "“Setup Windows and ConfigMgr” action which, when run after an “Apply Operating System Image” action, will configure the new operating system to resume the task sequence and reboot the machine." per <https://social.technet.microsoft.com/Forums/systemcenter/en-US/6d86a803-4879-4c00-821b-32d91d499225/ts-cannot-continue-after-reboot?forum=configmgrosd>