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 Could not create WMI locator class (80040154)

Status
Not open for further replies.

Sabian Cullum

New Member
Messages
1
Reaction score
0
Points
1
I have looked at everything on google on this topic to no avail. Please if anyone can help i will be very grateful!

LOGGING: Finalize process ID set to 944 TSBootShell 568 (0x0238)
==============================[ TSBootShell.exe ]============================== TSBootShell 568 (0x0238)
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL' TSBootShell 568 (0x0238)
Waiting for PNP initialization... TSBootShell 560 (0x0230)
RAM Disk Boot Path: NET(0)\BOOT\X64\IMAGES\BOOT.NHS00005.WIM TSBootShell 560 (0x0230)
Booted from network (PXE) TSBootShell 560 (0x0230)
Network(PXE) path: X:\sms\data\ TSBootShell 560 (0x0230)
Found config path X:\sms\data\ TSBootShell 560 (0x0230)
Booting from removable media, not restoring bootloaders on hard drive TSBootShell 560 (0x0230)
X:\sms\data\WinPE does not exist. TSBootShell 560 (0x0230)
X:\_SmsTsWinPE\WinPE does not exist. TSBootShell 560 (0x0230)
Executing command line: wpeinit.exe -winpe TSBootShell 560 (0x0230)
The command completed successfully. TSBootShell 560 (0x0230)
Setting offline Windows drive and OS root directory to Task Sequence environment. TSBootShell 560 (0x0230)
Processing volume C:\ TSBootShell 560 (0x0230)
spLocator.createInstance( ((bUseAdminLocator == true) ? CLSID_WbemAdministrativeLocator : CLSID_WbemLocator ) ), HRESULT=80040154 (X:\bt\1204713\repo\src\Framework\Core\CCMCore\WmiNamespace.cpp,264) TSBootShell 560 (0x0230)
Could not create WMI locator class (80040154) TSBootShell 560 (0x0230)
spNamespace.Open(pszNameSpace), HRESULT=80040154 (X:\bt\1204713\repo\src\Framework\TSCore\diskutils.cpp,1393) TSBootShell 560 (0x0230)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 TSBootShell 560 (0x0230)
Volume C:\ is a USB device. TSBootShell 560 (0x0230)
Processing volume X:\ TSBootShell 560 (0x0230)
Volume X:\ is not a local hard drive. TSBootShell 560 (0x0230)
_OSDDetectedWinDrive='', _OSDDetectedWinDir='' TSBootShell 560 (0x0230)
Starting DNS client service. TSBootShell 560 (0x0230)
Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\ TSBootShell 560 (0x0230)
The command completed successfully. TSBootShell 560 (0x0230)
Execution complete. TSBootShell 560 (0x0230)
hMap != 0, HRESULT=80070002 (X:\bt\1204713\repo\src\Framework\TSCore\environmentscope.cpp,495) TSBootShell 560 (0x0230)
m_pGlobalScope->open(), HRESULT=80070002 (X:\bt\1204713\repo\src\Framework\TSCore\environmentlib.cpp,335) TSBootShell 560 (0x0230)
this->open(), HRESULT=80070002 (X:\bt\1204713\repo\src\Framework\TSCore\environmentlib.cpp,561) TSBootShell 560 (0x0230)
::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (X:\bt\1204713\repo\src\Framework\TSCore\utils.cpp,905) TSBootShell 560 (0x0230)
RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence TSBootShell 560 (0x0230)
GetTsRegValue() is unsuccessful. 0x80070002. TSBootShell 560 (0x0230)
End program: TSBootShell 560 (0x0230)
Finalizing logging from process 944 TSBootShell 560 (0x0230)
Finalizing logs to root of first available drive TSBootShell 560 (0x0230)
Successfully finalized logs to C:\SMSTSLog TSBootShell 560 (0x0230)
Cleaning up task sequencing logging configuration. TSBootShell 560 (0x0230)
TS::Environment::SharedEnvironment.isInitialized() == true, HRESULT=80004005 (X:\bt\1204713\repo\src\Framework\TSCore\tslogging.cpp,694) TSBootShell 560 (0x0230)
TS environment is not initialized TSBootShell 560 (0x0230)
 
I see a few things on this log that raise a flag:
X:\sms\data\WinPE does not exist. TSBootShell 560 (0x0230)
X:\_SmsTsWinPE\WinPE does not exist. TSBootShell 560 (0x0230)

Could not create WMI locator class (80040154) TSBootShell 560 (0x0230)
spNamespace.Open(pszNameSpace), HRESULT=80040154 - I guess this is what your post is about?

and...
Failed to connect to WMI namespace \\.\ROOT\CIMV2 TSBootShell 560 (0x0230)
Volume C:\ is a USB device. TSBootShell 560 (0x0230)

It will help us if you provide more details on the issue.
 
Hi,
I know this is not a current post. But I have quite exactly same problem and wonder how @Sabian Cullum maybe fixed it.
Especially i note in my and his log the "Volume C:\ is a USB device." here , it looks like it cannot find the C: disk. Or am i wrong here ?

Is it just a disk controller driver we need ?

LOGGING: Finalize process ID set to 1236 TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
==============================[ TSBootShell.exe ]============================== TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL' TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
Debug shell is enabled TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
Waiting for PNP initialization... TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
RAM Disk Boot Path: NET(0)\DKO00178.WIM TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
Booted from network (PXE) TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
Network(PXE) path: X:\sms\data\ TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
Found config path X:\sms\data\ TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
Booting from removable media, not restoring bootloaders on hard drive TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
X:\sms\data\WinPE does not exist. TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
X:\_SmsTsWinPE\WinPE does not exist. TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
Executing command line: wpeinit.exe -winpe TSBootShell 02-09-2024 13:16:15 1256 (0x04E8)
Executing command line: X:\Windows\system32\cmd.exe /k TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
The command completed successfully. TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
Successfully launched command shell. TSBootShell 02-09-2024 13:16:15 1240 (0x04D8)
The command completed successfully. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Setting offline Windows drive and OS root directory to Task Sequence environment. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Processing volume C:\ TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
spLocator.createInstance( ((bUseAdminLocator == true) ? CLSID_WbemAdministrativeLocator : CLSID_WbemLocator ) ), HRESULT=80040154 (K:\dbs\sh\cmgm\1026_005344\cmd\l\src\Framework\Core\CCMCore\WmiNamespace.cpp,264) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Could not create WMI locator class (80040154) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
spNamespace.Open(pszNameSpace), HRESULT=80040154 (K:\dbs\sh\cmgm\1026_005344\cmd\1c\src\Framework\TSCore\diskutils.cpp,1397) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Volume C:\ is a USB device. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Processing volume D:\ TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
spLocator.createInstance( ((bUseAdminLocator == true) ? CLSID_WbemAdministrativeLocator : CLSID_WbemLocator ) ), HRESULT=80040154 (K:\dbs\sh\cmgm\1026_005344\cmd\l\src\Framework\Core\CCMCore\WmiNamespace.cpp,264) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Could not create WMI locator class (80040154) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
spNamespace.Open(pszNameSpace), HRESULT=80040154 (K:\dbs\sh\cmgm\1026_005344\cmd\1c\src\Framework\TSCore\diskutils.cpp,1397) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Volume D:\ is a USB device. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Processing volume E:\ TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Volume E:\ is not a local hard drive. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Processing volume X:\ TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Volume X:\ is not a local hard drive. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
_OSDDetectedWinDrive='', _OSDDetectedWinDir='' TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Starting DNS client service. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\ TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
The command completed successfully. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Execution complete. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
hMap != 0, HRESULT=80070002 (K:\dbs\sh\cmgm\1026_005344\cmd\1c\src\Framework\TSCore\environmentscope.cpp,495) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
m_pGlobalScope->open(), HRESULT=80070002 (K:\dbs\sh\cmgm\1026_005344\cmd\1c\src\Framework\TSCore\environmentlib.cpp,335) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
this->open(), HRESULT=80070002 (K:\dbs\sh\cmgm\1026_005344\cmd\1c\src\Framework\TSCore\environmentlib.cpp,561) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (K:\dbs\sh\cmgm\1026_005344\cmd\1c\src\Framework\TSCore\utils.cpp,689) TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
GetTsRegValue() is unsuccessful. 0x80070002. TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
End program: TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Finalizing logging from process 1236 TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
Finalizing logs to root of first available drive TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
LOGGING: Setting log directory to "D:\SMSTSLog". TSBootShell 02-09-2024 13:16:26 1256 (0x04E8)
 
To reply to myself.
This fixed it. Uninstall ADK, reboot, actually downgrade ADK and reboot again. Then update boot image. Then it could boot.
 
Solution
Status
Not open for further replies.
Back
Top