Hi Samuel Parker,
Please open an administrative Command Prompt and navigate to the Windows System32 directory. From there, execute the lodctr /R command. You must use an uppercase R, as this specific switch instructs the operating system to rebuild the counters from scratch using system initialization files rather than looking for a manual backup file. After this completes, you need to navigate to the Windows SysWOW64 directory and run the exact same command. Running it from this second location is critical on 64-bit servers to ensure that the 32-bit performance counters are also successfully repaired for any older agents.
Once the registry structures are rebuilt, you must align these changes with the Windows Management Instrumentation service. WMI caches performance counter data, so you need to execute the winmgmt /resyncperf command to force WMI to recognize the fresh counters. Finally, restart the Windows Management Instrumentation service along with your monitoring agents, and your CPU and memory metrics will report correctly.
Hope this answer has brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.
VPHAN