How to fix a WMIDiag error

I am having a WMI issue with one workstation and after running WMIDiag several times I have been able to cleanup all but two remaining errors. I ran WMIDiag with the CheckConsistancy parameter that was supposed to "fix" any errors (thanks SP2) but it did not correct much of anything, I had to smack it with a hammer numerous times.  The remaining two errors are listed below in the snippet section.  I have no clue how to correct them.  I am looking for very specific steps to resolve this issue.
Thanks in advance
Lynn
38401 20:08:11 (1) !! ERROR: WMI EXECQUERY operation errors reported: ..................................................................... 2 ERROR(S)!
38402 20:08:11 (0) ** - root/ccm/Policy/machine, 'Select * From CCM_PolicyAgent_Configuration' did not return any instance while AT LEAST 1 instance is expected.
38403 20:08:11 (0) ** - root/ccm, 'Select * From SMS_Authority' did not return any instance while AT LEAST 1 instance is expected.
38404 20:08:11 (0) **

Open in new window

conlinAsked:
Who is Participating?
 
Netman66Connect With a Mentor Commented:
Sorry about that!  I read right past the fact it was a workstation.

Try this:

c:
cd \windows\system32\wbem
for /f %%s in ('dir /b *.mof *.mfl') do mofcomp %s

If that fails then you can completely rebuild WMI by stopping the services and deleting the Repository contents.  Beware that any software installed that adds MOFs to WMI will probably need to be reinstalled if they stop working.


0
 
Netman66Commented:
Run CCMCLEAN and remove the SMS agent cleanly.  Check the logs to ensure it is, in fact, cleanly removed.
Reboot.
Reinstall the SMS client (if you need it) or deploy it again from the SMS Site Server to that machine.

0
 
conlinAuthor Commented:
Thanks Netman66
Running CCMClean seems to have fixed WMI as WMIDiag now claims that WMI is working properly.  Unfortunately I now have a couple of new issues that I'm not sure how important they are.  This is definitely "not" my area of expertise.  Would you review the WMIDiag report attached and let me know what you think.
I certainly appreciate your assistance.
Lynn
WMIDIAG-V2.0-XP---.CLI.SP2.32-LY.LOG
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
Netman66Commented:
Stick this in a CMD file somewhere on that server:

cd \windows\system32\wbem
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s

Stop the WMI Service in Services.msc.

Run the script from an open CMD window so you can see any errors.  Alternately, you can pipe the output to a file like so:

fixwmi.cmd > c:\fixwmi.txt

(this assumes you saved your file as fixwmi.cmd).

Let me know.

0
 
Netman66Commented:
Oh, I forgot to tell you to restart WMI service - or restart the server completely.

You can run another WMIdiag if you like.


0
 
conlinAuthor Commented:
It doesn't run.  The error I receive is "The syntax of the command is incorrect.". I tried moving the fix file directly into the c:\windows\system32\wbem directory and running with and without the output redirected to a file.  I noticed that you mentioned server more than once. This is a Win XP Pro SP2 workstaiton.  Could that be the issue?  I did stop the WMI service.

Thanks again for your assistance
Lynn
0
 
conlinAuthor Commented:
I solved the problem working with the software vendor that was collecting the WMI information and relocated it to the local subnet. That solved the immediate issue.
With the suggestion that the last recommended fix might require a reistall of various software and I resolved my immediate WMI issue, I chose not to execute the recommended process and let things remain as they are. It simply was not worth my time to reinstall untold numbers of software that might deposit MOF's to WMI. Thanks to Netman66 for sticking with me and I am sorry for the time lag for this answer. I didn't seen that his last fix had been posted.  So lets give him some points even though I decided not to pursue his last suggestion.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.