Jump to content

Recommended Posts

Posted (edited)

OSPPError.png

 

Anyone ever have WMI go legs up on them? In my 15 years of working IT I never have and of course the very first time I have to deal with it it hits my Windows 7 x64 base image. I first noticed it when trying to activate Office 2010 using the OSPP.vbs script; it was giving me an error code of -2147217406.. It was failing hard and so was another script I use for post-image related tasks. I then found this in the Event Log:

Windows Management Instrumentation ADAP failed to connect to namespace \\.\root\cimv2 with the following error 0x80041002

 

Running the WMI Diagnostic utility was also filled with similar errors.

0x80041002 (WBEM_E_NOT_FOUND)

 

After messing around with a couple potential fixes the only thing that cured it was stopping the WMI service and resetting the WMI repository using this command:

c:\windows\system32\wbem\winmgmt.exe /resetrepository

 

You can test it by either running a script that calls to WMI, or using a built-in utility in Windows to connect.

c:\windows\system32\wbem\wbemtest.exe

 

What bugs me is that I don't know what caused it. The only changes I made to image since the last update was these:

 

Image Revision:	2013/10/23
-Windows Updates
-Installed Java 7u40
	-Added registry keys to disable sponsor in Java Update
	-Removed Start Menu group
-Installed Windows Live Movie Maker 2012
-Installed Flash 11.9.900.117
-Installed Reader 11.0.04
-Installed Google Chrome 30.0.1599.101
-Updated OEM information

 

I suspect it was one of the updates; the last time it was ran was 8/22. Fun times... I got to waste an entire morning ironing this out. Now to sysprep and resend this pig of an image back up to WDS. :rolleyes:

Edited by Duke5A
Posted
check your path variable. ive seen quicktime break it by missing a ; out of path so wbem folder wasnt pathed and wmi died
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...