conlin
asked on
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
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) **
ASKER
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
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
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.
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.
Oh, I forgot to tell you to restart WMI service - or restart the server completely.
You can run another WMIdiag if you like.
You can run another WMIdiag if you like.
ASKER
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
Thanks again for your assistance
Lynn
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
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.
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.
Reboot.
Reinstall the SMS client (if you need it) or deploy it again from the SMS Site Server to that machine.