Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Try to dredge the computer's performance libraries again by using the following commands:
winmgmt /clearadap
This command clears all WMI-related values from the service's performance registry key.
winmgmt /resyncperf "winmgmt service pid"
This command registers the computer's performance libraries with the WMI.
You can find the WMI service PID information on the
Process tab of Windows Task Manager.
The performance registry keys for the involved services include the following registry keys:
WbemAdapFileSize
WbemAdapFileTime
WbemAdapStatus
Note For more information about the command options that are available with WMI, type
winmgmt/? at a command prompt.
Another possible cause for the events may be that the counters are slow to respond due to other activities during startup. You can tune this timeout by adding the value Collect Timeout REG_DWORD 10000 to the appropriate registry location:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\[counterfile]\Performance
Where [counterfile] is the
file name performance library listed in the error message from Event Viewer.
For example, the message in Event Viewer is
as follows:
WMI ADAP was unable to process the perfproc.dll performance library due to a time violation in the open function
In this case, the registry key will be as follows:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PerfProc\Performance
Note This registry path does not include the file extension (.dll).
If events continue to be logged after you make these changes, change the WbemAdapStatus value manually to REG_DWORD 0 under the service's performance registry key, and then increase the ADAPPerflibTimeout value to REG_DWORD 180 in the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Wbem\CIMOM
Note You must enter all registry changes as decimal values.
Additionally, you can disable performance counters for a specific service with the Exctrlst.exe utility from the Windows 2000 Resource Kit. This utility disables the specific counter by adding a registry key similar to the example below. You can add these registry entries under the specific counter entry manually if Exctrlst.exe is not available or desirable.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Spooler\Performance
Value name: Disable Performance Counters
Value type: REG_DWORD
Value data: 1
Note To use these commands, click
Start,
Run, and then type
cmd to access the command prompt.