PacketsReceivedPersec - property in ROOT\CIMV2 namespace

PacketsReceivedPersec in other namespaces

List of classes with PacketsReceivedPersec local property in ROOT\CIMV2 namespace

propertyClassOrigin
PacketsReceivedPersecWin32_PerfFormattedData_Counters_GenericIKEv1AuthIPandIKEv2Win32_PerfFormattedData_Counters_GenericIKEv1AuthIPandIKEv2
PacketsReceivedPersecWin32_PerfFormattedData_dhcpserver_DHCPServerWin32_PerfFormattedData_dhcpserver_DHCPServer
PacketsReceivedPersecWin32_PerfFormattedData_dhcpserver_DHCPServerv6Win32_PerfFormattedData_dhcpserver_DHCPServerv6
PacketsReceivedPersecWin32_PerfFormattedData_NvspNicStats_HyperVVirtualNetworkAdapterWin32_PerfFormattedData_NvspNicStats_HyperVVirtualNetworkAdapter
PacketsReceivedPersecWin32_PerfFormattedData_NvspPortStats_HyperVVirtualSwitchPortWin32_PerfFormattedData_NvspPortStats_HyperVVirtualSwitchPort
PacketsReceivedPersecWin32_PerfFormattedData_NvspSwitchStats_HyperVVirtualSwitchWin32_PerfFormattedData_NvspSwitchStats_HyperVVirtualSwitch
PacketsReceivedPersecWin32_PerfFormattedData_PerfNet_RedirectorWin32_PerfFormattedData_PerfNet_Redirector
PacketsReceivedPersecWin32_PerfFormattedData_Tcpip_NetworkAdapterWin32_PerfFormattedData_Tcpip_NetworkAdapter
PacketsReceivedPersecWin32_PerfFormattedData_Tcpip_NetworkInterfaceWin32_PerfFormattedData_Tcpip_NetworkInterface
PacketsReceivedPersecWin32_PerfRawData_Counters_GenericIKEv1AuthIPandIKEv2Win32_PerfRawData_Counters_GenericIKEv1AuthIPandIKEv2
PacketsReceivedPersecWin32_PerfRawData_dhcpserver_DHCPServerWin32_PerfRawData_dhcpserver_DHCPServer
PacketsReceivedPersecWin32_PerfRawData_dhcpserver_DHCPServerv6Win32_PerfRawData_dhcpserver_DHCPServerv6
PacketsReceivedPersecWin32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapterWin32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapter
PacketsReceivedPersecWin32_PerfRawData_NvspPortStats_HyperVVirtualSwitchPortWin32_PerfRawData_NvspPortStats_HyperVVirtualSwitchPort
PacketsReceivedPersecWin32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitchWin32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch
PacketsReceivedPersecWin32_PerfRawData_PerfNet_RedirectorWin32_PerfRawData_PerfNet_Redirector
PacketsReceivedPersecWin32_PerfRawData_Tcpip_NetworkAdapterWin32_PerfRawData_Tcpip_NetworkAdapter
PacketsReceivedPersecWin32_PerfRawData_Tcpip_NetworkInterfaceWin32_PerfRawData_Tcpip_NetworkInterface

Code samples for PacketsReceivedPersec property

Get instance of WMI class using GetObject, PacketsReceivedPersec property of Win32_PerfFormattedData_Tcpip_NetworkAdapter

Short VBS code - get a single specified instance of Win32_PerfFormattedData_Tcpip_NetworkAdapter class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\cimv2:" + _
 "Win32_PerfFormattedData_Tcpip_NetworkAdapter.Name=""isatap.{BE821F4B-AD34-4F9A-A8BA-A723FA80DC55}""")
Wscript.Echo wmiObject.PacketsReceivedPersec 'or other property name, see properties
See more VBS samples of Win32_PerfFormattedData_Tcpip_NetworkAdapter class

WMI query - sample windows WQL with C#, PacketsReceivedPersec property of Win32_PerfFormattedData_Tcpip_NetworkAdapter

Get a specified instance of Win32_PerfFormattedData_Tcpip_NetworkAdapter by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\cimv2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_PerfFormattedData_Tcpip_NetworkAdapter Where Name=\"isatap.{BE821F4B-AD34-4F9A-A8BA-A723FA80DC55}\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("PacketsReceivedPersec : {0}", m["PacketsReceivedPersec"]);
  
}

WMI query - sample windows WQL with VB.Net, PacketsReceivedPersec property of Win32_PerfFormattedData_Tcpip_NetworkAdapter

Get a specified instance of Win32_PerfFormattedData_Tcpip_NetworkAdapter by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\cimv2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Win32_PerfFormattedData_Tcpip_NetworkAdapter Where Name="isatap.{BE821F4B-AD34-4F9A-A8BA-A723FA80DC55}"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("PacketsReceivedPersec : {0}", mObject("PacketsReceivedPersec"))
Next
comments powered by Disqus
WUtils.com