.NET 2.0 counters won’t show up in perfmon by default when using the /wmi switch. They will show up in you just use regular perfmon but if you are trying to monitor .NET 2.0 counters via WMI, you are stuck. Microsoft is aware of this and released 951683 to fix this issue. You can request the hotfix from CSS here:
http://support.microsoft.com/kb/951683
This hotfix is included with .NET 3.5 SP1 onward so if you have it installed, you shouldn’t experience this issue. After installing the hotfix (does not require a reboot), just restart the WMI service and run this from command line:
winmgmt /resyncperf
which will resync counters with WMI. Then open perfmon using “perfmon /wmi” and you will see the missing counters.
You can also use the wbemtest.exe utility to test and troubleshoot WMI related issues. Just run this from command line:
wbemtest.exe
Click the Connect button and change the very first field to “root\cimv2”.
Then press Connect and then click Enum Classes on the next window. Leave the superclass blank but change it to Recursive and press OK. It will query every WMI class on the server and you can click on them to get further details. This should help you tremendously if you write your own WQL queries! 🙂
Jason Samuel is a visionary product leader and trusted advisor with a proven track record of shaping strategy and driving technology innovation. With extensive expertise in enterprise end-user computing, security, cloud, automation, and virtualization technologies, Jason has become a globally recognized authority in the IT industry. His career spans consulting for hundreds of Fortune 500 enterprises across diverse business sectors worldwide, delivering cutting-edge digital solutions from Citrix, Microsoft, VMware, Amazon, Google, and NVIDIA that seamlessly balance security with exceptional user experiences.
Jason’s leadership is amplified by his dedication to knowledge-sharing as an author, speaker, podcaster, and mentor within the global IT and technology community. Recognized with numerous prestigious awards, Jason’s contributions underscore his commitment to advancing technology and empowering organizations to achieve transformative results. Follow him on LinkedIn.
Thanks a lot for this article!
Hi Jason, I read your blogs and its quite good and eye opening for me. I need an input from…
I'm with Richard Powell and Andreas Mariotti. Things work if I do it the USB redirection way, but not with…
We see this behaviour with 2203 CU2 VDAs and while being happy, that there is at leasy an workaround without…
Saved my butt without playing around over dozens attempts to get that certificate installed! Thank you! <3 Chris