Tasklist error in Windows Server 2008 R2 .
-
Thursday, November 15, 2012 1:24 PM
Hi
When trying to list the tasks list in command prompt through tasklist.exe , got an error like "Error : Not Found " .
Also found that none of the WMI dependent components is working . Eg : msinfo32 , systeminfo failed to load the information .
Looks like WMI repository is corrupted .
Any help is much appreciated .
Regards,
Raja.
All Replies
-
Thursday, November 15, 2012 3:13 PM
the command
winmgmt.exe /verifyrepository
will tell you the state of your WMI.
winmgmt /? will also give you options to correct if anything is wrong.. if you get the output for the above command as inconsistent.. then the following switch will help.
/salvagerepository
Performs a consistency check on the WMI repository, and if an
inconsistency is detected, rebuilds the repository. The content of the
inconsistent repository is merged into the rebuilt repository, if it
can be read. The salvage operation always works with the repository
that the WMI service is currently using. MOF files that contain the
#pragma autorecover preprocessor statement are restored to the
repository.regards,
paras pant.
- Marked As Answer by Raja26 Friday, November 16, 2012 3:56 AM
-
Friday, November 16, 2012 3:56 AM
Paras - Thanks for your response .
WMI was inconsistent and Now fixed the issue .
But I would like to know what would be the cause for inconsistency and is there any impact on rebuilding the WMI in a production server.
Do you have any idea on this .
Regards,
Raja.
-
Friday, November 16, 2012 12:22 PM
that's a tricky one.. WMI is a component that is used by multiple applications/components both built in Windows and the ones that you install.
trying to find as to what caused the issue will be tricky.. but if the issue continues to happen then tracking may be done... there are multiple methods to track this and we cannot have a generalised troubleshooter. however starting with the event viewer is always good.
WMI is based on WBEM and built on DCOM. so you should also check if there are issues with DCOM on your server.
I would advice you to open a support ticket with Microsoft if the issue is persistent.
ideally rebuilding the repository should not cause fatal issues with the server OS, but you may notice errors with application which have registered or compiled there MOF's and namespaces.
these can be later re-compiled manually.
regards,
paras pant.
-
Monday, November 19, 2012 7:16 AMThanks paras for the information.

