Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED OSD Task sequence doesn't continue after reboot

Status
Not open for further replies.

botto

New Member
Messages
1
Reaction score
0
Points
1
Hello,

I'm having a very strange situation. I am currently using SCCM 1902, and when I apply OSD Task sequence with a clean wim, Task sequence finishes with no problems. SCCM client, packages, applications, everything is installed, but when I apply OSD Task sequence with a wim captured from reference computer, newly built, all is good until first reboot. Windows goes to log-in screen, Task sequence never installs sccm client, packages, apps, or anything after reboot. No errors are reported. There is no ccm folders in Windows directory, just temporary _SMSTaskSequence folder with sccm content. I'm sending log files with successful task sequence, and with one that is problematic. Also, I noticed in the log files, that "OSDSetupHook.exe" doesn't continue after reboot.

Thanks !!!
 

Attachments

Check your Restart Computer task. what do you want to do after a restart? obviously after the OS is installed you would want to run the installed default OS.
1941
 
So, I am having this same issue with a 1809 image. it boots w/ no errors at the Setup Windows and Configuration Manager step. but never resumes the TS. I can remote to the pc and run the commands
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\smstsmgr" /v Start /T REG_DWORD /D 4 /f
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\setup" /v SetupType /T REG_DWORD /D 2 /f
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup" /v CmdLine /T REG_SZ /D "C:\Windows\system32\osdsetuphook.exe /execute" /f
then reboot and the TS Resumes and completes successfully. I had added the REG entries before the Configure windows step but it appears to overwrite them during this step. also adding a restart to OS after this step never happens as the Configure Windows step never completes.

a few notes. SMSTS log shows
Installing hook to 'C:\Windows' OSDSetupWindows 6/6/2019 8:27:05 AM 1348 (0x0544)
Installing OSD setup hook OSDSetupHook 6/6/2019 8:27:05 AM 668 (0x029C)
Setup hook install completed successfully OSDSetupHook 6/6/2019 8:27:05 AM 668 (0x029C)
Process completed with exit code 0
 
Last edited:
This happened when the SCCM client installation failed or corrupted.
I do not think this is the case as I can add the registry stuff that OSDSETUPHOOK is supposed to. Then reboot and the TS Continues and completes installing the CLIENT, APPLICATIONS, and UPDATES. the ADK is for windows 8.1 and I believe this is the issue. we are updating the ADK to see if the result is the same.
 
Have seen this behavior while using OEM Product Keys. Make sure you are capturing the image from a reference computer which has been installed with Volume Licensing Key or Input your Volume Licensing Key in "Apply Operating Step" in the TS.

There is a script called "Setupcomplete.cmd" which is responsible for resuming the task sequence after Windows is initialized. This script will not run if a OEM License Key is detected. This info related to OEM License Keys is mentioned in the following article.

 
Hi team,

I have a application which is having 2 executable files.
1.exe and 2.exe , reboot is require after install every executable file. Please suggest me how can implement this.
Once reboot done (1st executable file installed and reboot), SCCM should start 2nd executable file.
 
in your TS, first do Install Application 1.exe and then add Restart Computer task and select The currently installed default operating system on "Specify what to run after restart" and then add Install Application 2.exe
 
Status
Not open for further replies.

Forum statistics

Threads
7,165
Messages
27,971
Members
18,271
Latest member
prashantrm

Trending content

Back
Top