question

GusCB avatar image
0 Votes"
GusCB asked ColinFord-6663 commented

SCCM - OSD Task Sequence for Windows Server 2016/2019 stops after "Setup Windows and Configuration Manager"

Hi,
I'm trying to deploy Windows Server 2016/2019 on a Proliant Gen10 server (BIOS/UEFI). I've follow HPE documentation to import drivers on SCCM. The task sequence stops after the "Setup Windows and Configuration Manager" reboot. The server is joined to domain but a weird thing I've noticed here is that GPOs are not applied (I have a GPO that disable the domain firewall, so the firewall is on). The _SMSTaskSequence folder is not existed in C drive. The error in smsts.log in Temp folder didn't help. On a Hyper-V VM the Task Sequence is working (BIOS/UEFI). My Configuration Manager server is on version 2103 (i had the same behaviour with 2010).

Any ideas?

smsts.log
<![LOG[LOGGING: Finalize process ID set to 1112]LOG]!><time="23:51:48.008-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="tslogging.cpp:1861">
<![LOG[!sTSMDataPath.empty(), HRESULT=80070002 (..\resolvesource.cpp,1437)]LOG]!><time="23:51:48.035-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="resolvesource.cpp:1437">
<![LOG[TS::Utility::GetTSMDataPath( sDataDir ), HRESULT=80070002 (..\osdsetuphook.cpp,175)]LOG]!><time="23:51:48.035-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="osdsetuphook.cpp:175">
<![LOG[Failed to set log directory. Some execution history may be lost.
The system cannot find the file specified. (Error: 80070002; Source: Windows)]LOG]!><time="23:51:48.040-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="osdsetuphook.cpp:192">
<![LOG[Running module version 5.0.9049.1001 from location 'C:\WINDOWS\system32\OSDSETUPHOOK.EXE']LOG]!><time="23:51:48.041-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="osdsetuphook.cpp:309">
<![LOG[Clients is joined to a domain.]LOG]!><time="23:51:48.041-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="osdsetuphook.cpp:233">
<![LOG[Command line for extension .exe is "%1" %]LOG]!><time="23:51:48.057-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:229">
<![LOG[Set command line: C:\WINDOWS\system32\net.exe start W32Time]LOG]!><time="23:51:48.057-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:723">
<![LOG[Executing command line: C:\WINDOWS\system32\net.exe start W32Time with options (0, 0)]LOG]!><time="23:51:48.057-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:822">
<![LOG[Process completed with exit code 2]LOG]!><time="23:51:50.325-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:1136">
<![LOG[Command line for extension .exe is "%1" %
]LOG]!><time="23:51:50.325-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:229">
<![LOG[Set command line: C:\WINDOWS\system32\w32tm.exe /resync]LOG]!><time="23:51:50.325-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:723">
<![LOG[Executing command line: C:\WINDOWS\system32\w32tm.exe /resync with options (0, 0)]LOG]!><time="23:51:50.325-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:822">
<![LOG[Process completed with exit code 2147943462]LOG]!><time="23:51:50.357-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="CommandLine.cpp:1136">
<![LOG[Successfully synchronized time with AD.]LOG]!><time="23:51:50.357-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="osdsetuphook.cpp:256">
<![LOG[Executing task sequence]LOG]!><time="23:51:50.357-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="osdsetuphook.cpp:394">
<![LOG[!sTSMDataPath.empty(), HRESULT=80070002 (..\resolvesource.cpp,1437)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="resolvesource.cpp:1437">
<![LOG[Task Sequence environment not found..]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1492">
<![LOG[Resume SCCM Client.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1268">
<![LOG[hMap != 0, HRESULT=80070002 (..\environmentscope.cpp,493)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (..\environmentlib.cpp,335)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentlib.cpp:335">
<![LOG[this->open(), HRESULT=80070002 (..\environmentlib.cpp,561)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentlib.cpp:561">
<![LOG[Service CCMExec not installed]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="utils.cpp:6266">
<![LOG[Cleaning up any active Task Sequence requests in WMI.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="utils.cpp:6110">
<![LOG[nsRootCcmSofMgmtAgent.Open (L"root\\ccm\\softmgmtagent"), HRESULT=8004100e (..\utils.cpp,6112)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="utils.cpp:6112">
<![LOG[Failed to open root\ccm.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="utils.cpp:6112">
<![LOG[ReleaseActiveTSRequest failed. 0x8004100e.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="utils.cpp:6143">
<![LOG[Cleaning up any maintenance task requests in WMI.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="utils.cpp:6209">
<![LOG[nsRootCcm.Open (L"root\\ccm"), HRESULT=8004100e (..\utils.cpp,6211)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="utils.cpp:6211">
<![LOG[Failed to open root\ccm.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="utils.cpp:6211">
<![LOG[ReleaseMaintenanceTaskRequests failed. 0x8004100e.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="utils.cpp:6242">
<![LOG[ns.Open( c_szCcmNamespace), HRESULT=8004100e (..\ProvisioningMode.cpp,128)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="ProvisioningMode.cpp:128">
<![LOG[Could not open WMI namespace \.\root\CCM]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="ProvisioningMode.cpp:128">
<![LOG[Exiting SetClientProvisioningMode 0x8004100E]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="ProvisioningMode.cpp:160">
<![LOG[CCM::Utility::SetClientProvisioningMode (false), HRESULT=8004100e (..\utils.cpp,6490)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="utils.cpp:6490">
<![LOG[Errors encountered while restoring client to managed state. Trying to reset the provisioning mode registry key. Code 0x8004100e]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="utils.cpp:6496">
<![LOG[Failed to open the SOFTWARE\Microsoft\Ccm\CcmExec registry key. Code 0x80070002]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="3" thread="3284" file="utils.cpp:6506">
<![LOG[hMap != 0, HRESULT=80070002 (..\environmentscope.cpp,493)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (..\environmentlib.cpp,335)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentlib.cpp:335">
<![LOG[open(), HRESULT=80070002 (..\environmentlib.cpp,433)]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentlib.cpp:433">
<![LOG[Uninstalling Setup Hook]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1663">
<![LOG[Removing setup hook from registry.]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="vistasetuphook.cpp:144">
<![LOG[Successfully removed C:\WINDOWS\system32\OSDGINA.DLL]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1326">
<![LOG[Could not delete the file C:\WINDOWS\system32\OSDSETUPHOOK.EXE. Error code 5]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="utils.cpp:2086">
<![LOG[Marking the file C:\WINDOWS\system32\OSDSETUPHOOK.EXE for deletion on Reboot]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="utils.cpp:2111">
<![LOG[Successfully removed C:\WINDOWS\system32\OSDSETUPHOOK.EXE]LOG]!><time="23:51:50.372-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1326">
<![LOG[Successfully removed C:\WINDOWS\system32_SMSOSDSetup]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1363">
<![LOG[hMap != 0, HRESULT=80070002 (..\environmentscope.cpp,493)]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (..\environmentlib.cpp,335)]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentlib.cpp:335">
<![LOG[this->open(), HRESULT=80070002 (..\environmentlib.cpp,561)]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="environmentlib.cpp:561">
<![LOG[::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (..\utils.cpp,1105)]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="0" thread="3284" file="utils.cpp:1105">
<![LOG[RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="2" thread="3284" file="utils.cpp:1105">
<![LOG[GetTsRegValue() is unsuccessful. 0x80070002.]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="2" thread="3284" file="utils.cpp:1138">
<![LOG[End program: ]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="basesetuphook.cpp:1677">
<![LOG[Finalizing logging from process 1112]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="tslogging.cpp:2107">
<![LOG[Successfully finalized logs to SMS client log directory from C:\WINDOWS\TEMP]LOG]!><time="23:51:50.388-180" date="05-25-2021" component="OSDSetupHook" context="" type="1" thread="3284" file="tslogging.cpp:1908">

mem-cm-generalmem-cm-osd
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ColinFord-6663 avatar image
0 Votes"
ColinFord-6663 answered ColinFord-6663 commented

If the task sequence works on a VM but not hardware it is likely hardware / driver related, especially if it happens during the mini setup phase. Check that there are no additional drivers you may need and that the BIOS is up to date. If there are multiple drives, check that all looks normal once it crashes - like the _SMSTaskSequence folder is not on some odd drive letter.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What can I say?
The "If there are multiple drives...." was the push to wake me up! There is a second drive but after login it was offline so I didn't gave any attention on it!! So I went back on server, set the second disk online and..... the SMSTaskSequence folder is there of course!

Thanks Colin!

1 Vote 1 ·

No worries, glad it helped :) Thanks for accepting the answer.

0 Votes 0 ·
HanyunZhu-MSFT avatar image
0 Votes"
HanyunZhu-MSFT answered GusCB commented

Hi,

Firstly we can check whether the CM client agent is successfully installed and running properly:
1) Open the Control Panel on the client side and confirm that the item Configuration Manager appears.
2) Click the Configuration Manager applet to show the properties, confirm that the Assigned Management Point is the correct SCCM server running as a Management Point

If the client agent is sucessfully installed, the smsts.log will be stored in c:\windows\ccm\logs\Smstslog\smsts.log.
If it hasn't been installed, we can refer to this article to find the location of smsts.log:
https://social.technet.microsoft.com/wiki/contents/articles/30109.sccm-how-to-copy-smsts-log-when-a-task-sequence-fails.aspx

As you mentioned that the GPOs are not applied on the client, this is because Windows group policy normally doesn't process until after the task sequence is complete.
For more details, here is an article that can be used for reference: https://docs.microsoft.com/en-us/mem/configmgr/osd/understand/task-sequence-steps#BKMK_SetupWindowsandConfigMgr

Hope the information above can help you.


If the response is helpful, please click "Accept Answer"and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi HanyunZhu
The CM client agent is not installed. The only log I can find, is the smsts.log in C:\Windows\Temp. The server restart normally after the "Setup Windows and Configuration Manager" step and then (after two more restarts) it goes to logon screen without any error. The c:_SMSTaskSequence\ is also missing

0 Votes 0 ·