Share via


OSD RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence

Question

Thursday, January 10, 2019 1:43 PM | 1 vote

Good day,

When running the OSD after selecting the TS that will be used, the Checking dependencies step runs and then the PC reboots. From the SMSTS log i get the "RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram" entry, but don't know what to do to resolve. The failed step is below... any help is much appreciated.

SCCM (CB), Version 1810, Console V. 5.1810.1075.1700, Site v. 5.0.8740.1000

OS Windows 10 Enterprise 1803 v. 10.0.17134.1

Boot image x64 version 10.0.17134.1, Client v. 5.00.8740.1012

**************************************************************************** TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Execution engine result code: Success (0) TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Cleaning Up. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Removing Authenticator TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
shKey.DeleteValue( c_szRegValue_SecurityToken ), HRESULT=80070002 (..\CcmUtilLib.cpp,2116) TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
shKey.DeleteValue(sRegValueName.c_str()), HRESULT=80070002 (..\CcmToken.cpp,1152) TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
shKey.DeleteValue(sRegValueName.c_str()), HRESULT=80070002 (..\CcmToken.cpp,1152) TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
!sTSMDataPath.empty(), HRESULT=80070002 (..\resolvesource.cpp,1436) TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
There is no TSM local data path being set TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Successfully unregistered Task Sequencing Environment COM Interface. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Command line for extension .exe is "%1" %* TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Set command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Executing command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
==========[ TsProgressUI started in process 1120 ]========== TsProgressUI 1/10/2019 6:33:44 AM 1116 (0x045C)
Command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister TsProgressUI 1/10/2019 6:33:44 AM 1116 (0x045C)
Unregistering COM classes TsProgressUI 1/10/2019 6:33:44 AM 1116 (0x045C)
Unregistering class objects TsProgressUI 1/10/2019 6:33:44 AM 1116 (0x045C)
Shutdown complete. TsProgressUI 1/10/2019 6:33:44 AM 1116 (0x045C)
Process completed with exit code 0 TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Successfully unregistered TS Progress UI. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Sending success status message TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
MP server http://Scooter.sladmin.com. Ports 80,443. CRL=false. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Setting authenticator TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Sending StatusMessage TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Setting the authenticator. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
CLibSMSMessageWinHttpTransport::Send: WinHttpOpenRequest - URL: Scooter.sladmin.com:80  CCM_POST /ccm_system/request TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Not in SSL TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Request was successful. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (..\utils.cpp,866) TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
GetTsRegValue() is unsuccessful. 0x80070002. TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
End program: TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Finalize logging request ignored from process 1920 TSManager 1/10/2019 6:33:44 AM 1924 (0x0784)
Process completed with exit code 0 TSPxe 1/10/2019 6:33:44 AM 1828 (0x0724)
Task Sequence Manager returned code 0x00000000 TSPxe 1/10/2019 6:33:44 AM 1828 (0x0724)
ThreadToResolveAndExecuteTaskSequence returned code 0x00000000 TSPxe 1/10/2019 6:33:44 AM 1524 (0x05F4)
ResolveProgressPage::OnWizardNext() TSPxe 1/10/2019 6:33:44 AM 1524 (0x05F4)
Activating Finish Page. TSPxe 1/10/2019 6:33:44 AM 1524 (0x05F4)
Exiting with return code 0x00000000 TSPxe 1/10/2019 6:33:44 AM 1524 (0x05F4)
Execution complete. TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
hMap != 0, HRESULT=80070002 (..\environmentscope.cpp,493) TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
m_pGlobalScope->open(), HRESULT=80070002 (..\environmentlib.cpp,335) TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
this->open(), HRESULT=80070002 (..\environmentlib.cpp,561) TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (..\utils.cpp,866) TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
GetTsRegValue() is unsuccessful. 0x80070002. TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
End program: TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
Finalizing logging from process 648 TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
Finalizing logs to root of first available drive TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)
LOGGING: Setting log directory to "X:\SMSTSLog". TSBootShell 1/10/2019 6:33:44 AM 672 (0x02A0)

All replies (3)

Monday, January 21, 2019 10:04 PM âś…Answered

Yes Sir.. It ended up being that the Task Sequence was corrupted and I had to create a new TS from scratch..


Thursday, January 10, 2019 2:42 PM

Update: I tried creating a new SCCM-NAA account in case of account issue and I also tried to "Allow clients to connect anonymously" from a post https://enterinit.com/sccm-osd-task-seqence-has-failed-with-the-error-code-0x80070002/

No luck...


Friday, January 18, 2019 5:22 PM

Hello,

Did you load any storage drivers in the boot.wim?