WMI and Perfmon
Hi I have read and read through the internet but still can't find out a decent answer to this question that has been bugging me - what does "perfmon /wmi" actually do that "perfmon" doesn't? I assume it uses WMI, but could someone expand? Without the switch, will WMI 'counter' not be picked up? And what is different between WMI counters and the usual Perfmon ones?
November 3rd, 2010 6:36pm

If you use Windows server 2003 or above it doesn't do anything more. But if you use older version of windows server (NT or Windows 2000 server) the program obtains performance data from WMI. So you can see performance counters obtained from WMI. ref: http://technet.microsoft.com/en-us/library/cc778986(WS.10).aspx "When this option is specified, the program obtains performance data by means of Windows Management Instrumentation (WMI) instead of the registry. WMI Hi-Perf providers can then expose performance counters, which in turn appear in System Monitor or are logged by the Performance Logs and Alerts Service. For Windows XP and the Windows Server 2003 family, all WMI counters now appear through the use of a reverse adapter regardless of whether you use the /wmi option."Volkan Sert
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2010 8:42pm

When perfmon is ran without the /WMI switch the performance counter information is provided by the HKEY_PERFORMANCE_DATA key in the registry. This key is only accessible programmatically through windows registry functions; you won't find it in the registry. the key itself does not hold the counter information. The registry functions use this key to fetch the counter information from performance data providers. When we do a Perfmon /Wmi, the perfmon information is provided by the wmi performance data providers The information for performance object and counters are stored in certain wmi classes ex: Win32_PerfFormattedData_PerfOS_Memory http://msdn.microsoft.com/en-us/library/aa392740%28VS.85%29.aspx http://msdn.microsoft.com/en-us/library/aa392397%28VS.85%29.aspx#performance_data_providers Madhurjya Bora OS performance Team, MSFT
November 3rd, 2010 8:48pm

Thanks, but I'm a little confused :) The article says: "For Windows XP and the Windows Server 2003 family, all WMI counters now appear through the use of a reverse adapter regardless of whether you use the /wmi option." Is that basically saying that the WMI counters appear in Perfmon on 2003 Server and later systems, regardless of whether the /wmi switch is used? In other words, we only need to use the /wmi switch with Windows 2000 Server and prior?
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2010 9:06am

Does anyone know the answer to this?
November 11th, 2010 2:20pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics