1. Launch Command Prompt as Administrator (right click Runs As Administrator). 2. Drop into the C:\WINDOWS\System32 directory by typing CD\ then CD Windows\System32 3. To rebuild your resource counters type the following command:
lodctr /r This will rebuild your counter values and may take a few moments so please be patient.
lodctr /r
This will rebuild your counter values and may take a few moments so please be patient.
4. If you wish to query the counters to make sure they were correctly set, use:
lodctr /q This will give you something like the following: Performance Counter ID Queries [PERFLIB]: Base Index: 0x00000737 (1847) Last Counter Text ID: 0x000031D2 (12754) Last Help Text ID: 0x000031D3 (12755) [.NET CLR Data] Performance Counters (Enabled) DLL Name: %systemroot%\system32\netfxperf.dll Open Procedure: OpenPerformanceData Collect Procedure: CollectPerformanceData Close Procedure: ClosePerformanceData [.NET CLR Networking] Performance Counters (Enabled) DLL Name: %systemroot%\system32\netfxperf.dll Open Procedure: OpenPerformanceData Collect Procedure: CollectPerformanceData Close Procedure: ClosePerformanceData and etc
lodctr /q
This will give you something like the following:
Performance Counter ID Queries [PERFLIB]:
Base Index: 0x00000737 (1847)
Last Counter Text ID: 0x000031D2 (12754)
Last Help Text ID: 0x000031D3 (12755)
[.NET CLR Data] Performance Counters (Enabled)
DLL Name: %systemroot%\system32\netfxperf.dll
Open Procedure: OpenPerformanceData
Collect Procedure: CollectPerformanceData
Close Procedure: ClosePerformanceData
[.NET CLR Networking] Performance Counters (Enabled)
and etc
5.Now reopen the Performance Monitor and check it. You will see that the error was fixed.
lodctr /e:<
provider
name>
lodctr /e:Performance Counters