Jump to content


basicchannel

WMI suddenly becoming corrupt in TS

Recommended Posts

Hi All,

 

I really hope someone can help me with this sudden problem I'm experiencing. I'm trying to deploy a TS on some Dell Optiplex 320s and the TS is *suddenly* failing. It fails at the point of installing applications, installing the first two and then failing on the rest. I know the wim is fine because I've used the same one for deploying to other machines and it works fine. The logs point to an issue with WMI with entries such as

 

 

Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)

 

An extract of the log file is below:

 

BaseVar = '', ContinueOnError='True' InstallApplication 22/08/2013 12:20:37 1012 (0x03F4)
SwdAction = '0001' InstallApplication 22/08/2013 12:20:37 1012 (0x03F4)
Setting progress step for initialization InstallApplication 22/08/2013 12:20:37 1012 (0x03F4)
Setting total steps to 1 InstallApplication 22/08/2013 12:20:37 1012 (0x03F4)
Succeeded loading resource DLL 'C:\Windows\CCM\1033\TSRES.DLL' InstallApplication 22/08/2013 12:20:37 1012 (0x03F4)
Adding 1 installs to steps InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Setting total steps to 2 InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Step 1 out of 2 complete InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Installing application 'dotNet4.5 Redist' InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
App documents variable is empty. InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
App contents variable is empty. InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
GetAppMgmtSDKInterface successful InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Retrieving value from TSEnv for '_SMSTSPolicy_ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_0ff346bf-fe2d-4611-8aab-050750fca061' InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
::DecompressBuffer(65536) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Decompression (zlib) succeeded: original size 1222, uncompressed size 10572. InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Found App policy modelname:ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/RequiredApplication_0ff346bf-fe2d-4611-8aab-050750fca061 and CIversion:2 InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Start to compile TS policy InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Failed to open to WMI namespace '\\.\root\ccm\policy\defaultmachine\requestedconfig' (8007045b) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
spPolicyNamespace.Open(pszNamespace, true), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,2505) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Failed to open WMI Namespace 'root\ccm\policy\defaultmachine\requestedconfig'. WMI Repository may be corrupted
A system shutdown is in progress. (Error: 8007045B; Source: Windows) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
End TS policy compilation InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
TS::Utility::CompileXMLPolicy( c_szRequestedConfigNS, m_sPolicyID, m_sPolicyVersion, c_szPolicySource, m_sPolicyRuleID, m_sPolicyData ), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installapplication\installapplication.cpp,936) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Step 2 out of 2 complete InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Install application action failed: 'dotNet4.5 Redist'. Error Code 0x8007045b InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Sending error status message InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Setting URL = http://sccm2012server.local, Ports = 80,443, CRL = false InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Setting Server Certificates. InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Setting Authenticator. InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Set authenticator in transport InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Setting Media Certificate. InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
GetAuxiliaryInfo (sUnknown, sMACAddresses, sSMBIOS), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,5766) InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Non fatal error 0x8007045b in sending task sequence execution status message to MP InstallApplication 22/08/2013 12:20:38 1012 (0x03F4)
Process completed with exit code 0 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
!--------------------------------------------------------------------------------------------! TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Successfully completed the action (.NET 4.5 Redist) with the exit win32 code 0 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
MP server http://sccmserver.local. Ports 80,443. CRL=false. TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Setting authenticator TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set authenticator in transport TSManager 22/08/2013 12:20:38 3472 (0x0D90)
spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
GetAuxiliaryInfo (sUnknown, sMACAddresses, sSMBIOS), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,5370) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Non fatal error 0x8007045b in sending task sequence execution status message to MP TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSLastActionRetCode=0 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSLastActionSucceeded=true TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Clear local default environment TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Updated security on object C:\_SMSTaskSequence. TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSNextInstructionPointer=37 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a TS execution environment variable _SMSTSNextInstructionPointer=37 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSInstructionStackString=13 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a TS execution environment variable _SMSTSInstructionStackString=13 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Save the current environment block TSManager 22/08/2013 12:20:38 3472 (0x0D90)
pIWBEMLocator->ConnectServer (BString (L"root\\CIMV2"), 0, 0, 0L, 0L, 0, 0, &pIWBEMServices), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\osdmessaging\libmachineinfo.cpp,264) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Successfully save execution state and environment to local hard disk TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Start executing an instruction. Instruction name: Install VS 2012. Instruction pointer: 37 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSCurrentActionName=Install VS 2012 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSNextInstructionPointer=37 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a local default variable OSDApp0Description TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a local default variable OSDApp0DisplayName TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a local default variable OSDApp0Name TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a local default variable OSDAppCount TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set a global environment variable _SMSTSLogPath=C:\Windows\CCM\Logs\SMSTSLog TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Expand a string: smsappinstall.exe /app:ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_d9e4d116-6823-4dc6-8d87-8be85159bdd3 /basevar: /continueOnError:False TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Expand a string: TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Command line for extension .exe is "%1" %* TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set command line: smsappinstall.exe /app:ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_d9e4d116-6823-4dc6-8d87-8be85159bdd3 /basevar: /continueOnError:False TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Start executing the command line: smsappinstall.exe /app:ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_d9e4d116-6823-4dc6-8d87-8be85159bdd3 /basevar: /continueOnError:False TSManager 22/08/2013 12:20:38 3472 (0x0D90)
!--------------------------------------------------------------------------------------------! TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Expand a string: FullOS TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Executing command line: smsappinstall.exe /app:ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_d9e4d116-6823-4dc6-8d87-8be85159bdd3 /basevar: /continueOnError:False TSManager 22/08/2013 12:20:38 3472 (0x0D90)
[ smsinstallapp.exe ] InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Application Names: InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
'ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_d9e4d116-6823-4dc6-8d87-8be85159bdd3' InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
BaseVar = '', ContinueOnError='False' InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
SwdAction = '0001' InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting progress step for initialization InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting total steps to 1 InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Succeeded loading resource DLL 'C:\Windows\CCM\1033\TSRES.DLL' InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Adding 1 installs to steps InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting total steps to 2 InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Step 1 out of 2 complete InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Installing application 'Visual Studio 2012' InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
App documents variable is empty. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
App contents variable is empty. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
GetAppMgmtSDKInterface successful InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Retrieving value from TSEnv for '_SMSTSPolicy_ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/Application_d9e4d116-6823-4dc6-8d87-8be85159bdd3' InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
::DecompressBuffer(65536) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Decompression (zlib) succeeded: original size 1226, uncompressed size 10572. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Found App policy modelname:ScopeId_152CB441-911D-4DF3-8C5F-B77C57B7D504/RequiredApplication_d9e4d116-6823-4dc6-8d87-8be85159bdd3 and CIversion:2 InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Start to compile TS policy InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Failed to open to WMI namespace '\\.\root\ccm\policy\defaultmachine\requestedconfig' (8007045b) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
spPolicyNamespace.Open(pszNamespace, true), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,2505) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Failed to open WMI Namespace 'root\ccm\policy\defaultmachine\requestedconfig'. WMI Repository may be corrupted
A system shutdown is in progress. (Error: 8007045B; Source: Windows) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
End TS policy compilation InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
TS::Utility::CompileXMLPolicy( c_szRequestedConfigNS, m_sPolicyID, m_sPolicyVersion, c_szPolicySource, m_sPolicyRuleID, m_sPolicyData ), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installapplication\installapplication.cpp,936) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Step 2 out of 2 complete InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Install application action failed: 'Visual Studio 2012'. Error Code 0x8007045b InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Sending error status message InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting URL = http://sccmserver.local, Ports = 80,443, CRL = false InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting Server Certificates. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting Authenticator. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Set authenticator in transport InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Setting Media Certificate. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
GetAuxiliaryInfo (sUnknown, sMACAddresses, sSMBIOS), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,5766) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Non fatal error 0x8007045b in sending task sequence execution status message to MP InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Install application action cannot continue. ContinueOnErrorFlag is set to false. InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
hrInstallation, HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installapplication\installapplication.cpp,808) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
pInstall->InstallApplications(saAppNames, sContinueOnError), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installapplication\main.cpp,277) InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Install Static Applications failed, hr=0x8007045b InstallApplication 22/08/2013 12:20:38 4092 (0x0FFC)
Process completed with exit code 2147943515 TSManager 22/08/2013 12:20:38 3472 (0x0D90)
!--------------------------------------------------------------------------------------------! TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Failed to run the action: Install VS 2012.
A system shutdown is in progress. (Error: 8007045B; Source: Windows) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
MP server http://sccmserver.local. Ports 80,443. CRL=false. TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Setting authenticator TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Set authenticator in transport TSManager 22/08/2013 12:20:38 3472 (0x0D90)
spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622) TSManager 22/08/2013 12:20:38 3472 (0x0D90)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b

Should I run a command before the application install task to clear/reset the repository or has anyone got any other ideas?

 

Thanks in advance

Share this post


Link to post
Share on other sites

I'm getting the same error. Deploying Win7x86 with SCCM 2012 SP1 CU2. After I install one of the applications required for my laptop model it reboots and then bombs out. I get the exact same errors at the end of the SMSTS log as you provided. Were you able to find a solution\cause? I've been reading around and apparently 0x8007045b can be caused by a bad sector on the drive. Just seams odd that the TS would be hitting the exact same spot in the drive every time.

Thanks for any input!

Share this post


Link to post
Share on other sites

We were also having this problem. In the end it had to do with the E1000 NIC in VMware which wasn't compatible with Windows Server 2012.

If this is the case, change the NIC to VMXNET3.

hi, would you be kind enough to share how did you manage to find this issue? I see this error only on dell latitude 2120 laptop, and I'm really not sure what could cause it.

thanks

Share this post


Link to post
Share on other sites

I think those WMI entries are created after installing the SCCM Client. Maybe there is a problem with the client package for this computer?
Otherwise it points to a corrupt WMI repository, and you might need to add a step before installing software to clean or rebuild it.

Share this post


Link to post
Share on other sites

I've got this same issue, and it only started in the last 3 weeks and only happens on Hyper-V servers!

 

We are running SCCM 2012 SP1 CU3 and our task sequence works flawlessly on all hardware (All Dell) but fails on some Hyper-v VMs! The point of failure is the same every time, and this is an application to install Microsoft Office 2010 SP1 32bit.

 

It doesn't matter where I put Office in the TS or whether I put a reboot in before and after it but it will fail with "Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b)" and then reboot itself even though we have an unlimited timeout set for a TS failure.

 

Now I have managed to get this working fine on a Server 2008 Hyper-v host but we have one 2012 host and another 2008 one that it will fail on every time. This never used to be a problem until recently so I'm not sure whether a security patch or something has caused the problem.

 

Once the machine reboots and I login I can see that office has install successfully but due to the WMI errors I then get errors in the SMSTS.log saying that the application failed to evaluate.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.