Tuesday, February 08, 2005

Rebuilding Performance Counters

I needed to do this recently, and Cappy let me know about a convenient way to do this:

[1] check the wmiadap.log file in system32\wbem\logs for details to see if anything is wacky
[2] then run: wmiadap.exe /c
[3] then run:
wmiadap.exe /f

Windows Management Instrumentation (WMI) uses AutoDiscovery/AutoPurge (ADAP) to build its internal performance counter table. This causes a clear, then a force rebuild. If that does not work you can try this command as well ( I think this worked pre-XP):
winmgmt /resyncperf

Link to wmiadap info: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmiadap.asp

No comments: