"Unable to add these counters:
\Memory\Available MBytes
\Memory\% Committed Bytes In Use
\Memory\Cache Faults/sec
\Memory\Cache Faults/sec
\PhysicalDisk(*)\%Idle Time
\PhysicalDisk(*)\Avg. Disk Queue Length
\Network Interface(*)\Bytes Total/sec"
Wiki Life: Why create a TechNet Wiki article when you can just link to a forum thread?
Below are some steps to be followed.
Steps:
We have to rebuild Performance Counters with LODCTR from an elevated command prompt.
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 /rThis 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 /qThis 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.dllOpen Procedure: OpenPerformanceDataCollect Procedure: CollectPerformanceDataClose Procedure: ClosePerformanceData[.NET CLR Networking] Performance Counters (Enabled)DLL Name: %systemroot%\system32\netfxperf.dllOpen Procedure: OpenPerformanceDataCollect Procedure: CollectPerformanceDataClose Procedure: ClosePerformanceDataand etc
5.Now reopen the Performance Monitor and check it. You will see that the error was fixed.
Note 1:
In the query if you have provider name that is Disabled, Use this Cmdlet to enable it.
Note 2:
If you perform this step and it doesn't work, please see the event log and search for if there is Event ID = 3006 in it? if yes,
please go to registry and change Disable Performance Counters from "1" to "0".
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
Hope this is helpful.
In the query if you have provider name that is Disabled, Use this Cmdlet to enable it.
lodctr /e:
for example (think in above query Performance Counters is disable ) :
lodctr /e:Performance Counters
Note 2:
If you perform this step and it doesn't work, please see the event log and search for if there is Event ID = 3006 in it? if yes,
please go to registry and change Disable Performance Counters from "1" to "0".
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
Hope this is helpful.