Powershell Get-Counter not reporting [closed]
Finding a definitive answer for Windows Server 2000 will be a challenge, but the error sounds exactly like what is described in a commonly-used article: "Manually rebuild performance counters for Windows Server 2008 64 bit or Windows Server 2008 R2 systems" and I would expect the solution to be the same.
Generally, when using performance counters results in the "object not found" error, that indicates one or more performance counters are broken and need to be rebuilt.
Quoting the article, in case links die:
1. Check the registry to make sure the counter you want to use is not disabled.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\%servicename%\Performance
- A value of 1 means the counter is disabled.
- A value of 2 means the 32-bit counter is disabled.
- A value of 4 means the 64-bit counter is disabled.
2. Rebuild the counters:
cd c:\windows\system32
lodctr /R
cd c:\windows\sysWOW64
lodctr /R
3. Resync the counters with the Windows Management Instrumentation (WMI):
WINMGMT.EXE /RESYNCPERF
4. Stop and restart the Performance Logs and Alerts service.
5. Stop and restart the Windows Management Instrumentation service.
6. Create a new Data Collector Set (don't use an existing Data Collector Set).