Win32_PerfRawData_IMMcuPerf powershell sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The Win32_PerfRawData_IMMcuPerf WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
$strComputer = "." $objWMi = get-wmiobject -computername localhost -Namespace root\CIMV2 -Query "Select * from Win32_PerfRawData_IMMcuPerf_LCImMcu00IMMcuConferences" foreach ($obj in $objWmi) { write-host "Caption:" $obj.Caption write-host "Description:" $obj.Description write-host "Frequency_Object:" $obj.Frequency_Object write-host "Frequency_PerfTime:" $obj.Frequency_PerfTime write-host "Frequency_Sys100NS:" $obj.Frequency_Sys100NS write-host "IMMCU000ActiveConferences:" $obj.IMMCU000ActiveConferences write-host "IMMCU001ConnectedUsers:" $obj.IMMCU001ConnectedUsers write-host "IMMCU002ConnectedDialinUsers:" $obj.IMMCU002ConnectedDialinUsers write-host "IMMCU003ConnectedDialoutUsers:" $obj.IMMCU003ConnectedDialoutUsers write-host "IMMCU004IncomingMessages:" $obj.IMMCU004IncomingMessages write-host "IMMCU005IncomingMessagespersec:" $obj.IMMCU005IncomingMessagespersec write-host "IMMCU006OutgoingMessages:" $obj.IMMCU006OutgoingMessages write-host "IMMCU007OutgoingMessagespersec:" $obj.IMMCU007OutgoingMessagespersec write-host "IMMCU008AverageMessageSize:" $obj.IMMCU008AverageMessageSize write-host "IMMCU008AverageMessageSize_Base:" $obj.IMMCU008AverageMessageSize_Base write-host "IMMCU010MessageForwardErrors:" $obj.IMMCU010MessageForwardErrors write-host "IMMCU011MessageForwardErrorspersec:" $obj.IMMCU011MessageForwardErrorspersec write-host "IMMCU012IncomingInfos:" $obj.IMMCU012IncomingInfos write-host "IMMCU013IncomingInfospersec:" $obj.IMMCU013IncomingInfospersec write-host "IMMCU014OutgoingInfos:" $obj.IMMCU014OutgoingInfos write-host "IMMCU015OutgoingInfospersec:" $obj.IMMCU015OutgoingInfospersec write-host "IMMCU016AverageInfoSize:" $obj.IMMCU016AverageInfoSize write-host "IMMCU016AverageInfoSize_Base:" $obj.IMMCU016AverageInfoSize_Base write-host "IMMCU018InfoForwardErrors:" $obj.IMMCU018InfoForwardErrors write-host "IMMCU019InfoForwardErrorspersec:" $obj.IMMCU019InfoForwardErrorspersec write-host "IMMCU020ThrottledSipConnections:" $obj.IMMCU020ThrottledSipConnections write-host "Name:" $obj.Name write-host "Timestamp_Object:" $obj.Timestamp_Object write-host "Timestamp_PerfTime:" $obj.Timestamp_PerfTime write-host "Timestamp_Sys100NS:" $obj.Timestamp_Sys100NS write-host write-host "########" write-host }