BytesSentPersec - property in ROOT\CIMV2 namespace

BytesSentPersec in other namespaces

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

propertyClassOrigin
BytesSentPersecWin32_PerfFormattedData_ClussvcPerfProvider_ClusterNetworkMessagesWin32_PerfFormattedData_ClussvcPerfProvider_ClusterNetworkMessages
BytesSentPersecWin32_PerfFormattedData_Counters_SMBDirectConnectionWin32_PerfFormattedData_Counters_SMBDirectConnection
BytesSentPersecWin32_PerfFormattedData_EthernetPerfProvider_HyperVLegacyNetworkAdapterWin32_PerfFormattedData_EthernetPerfProvider_HyperVLegacyNetworkAdapter
BytesSentPersecWin32_PerfFormattedData_ftpsvc_MicrosoftFTPServiceWin32_PerfFormattedData_ftpsvc_MicrosoftFTPService
BytesSentPersecWin32_PerfFormattedData_MSSQLMICROSOFTNumberNumberWID_MSSQLMICROSOFTNumberNumberWIDDatabaseMirroringWin32_PerfFormattedData_MSSQLMICROSOFTNumberNumberWID_MSSQLMICROSOFTNumberNumberWIDDatabaseMirroring
BytesSentPersecWin32_PerfFormattedData_MSSQLSERVER_SQLServerDatabaseMirroringWin32_PerfFormattedData_MSSQLSERVER_SQLServerDatabaseMirroring
BytesSentPersecWin32_PerfFormattedData_NvspNicStats_HyperVVirtualNetworkAdapterWin32_PerfFormattedData_NvspNicStats_HyperVVirtualNetworkAdapter
BytesSentPersecWin32_PerfFormattedData_NvspPortStats_HyperVVirtualSwitchPortWin32_PerfFormattedData_NvspPortStats_HyperVVirtualSwitchPort
BytesSentPersecWin32_PerfFormattedData_NvspSwitchStats_HyperVVirtualSwitchWin32_PerfFormattedData_NvspSwitchStats_HyperVVirtualSwitch
BytesSentPersecWin32_PerfFormattedData_PerfNet_ServerWorkQueuesWin32_PerfFormattedData_PerfNet_ServerWorkQueues
BytesSentPersecWin32_PerfFormattedData_ReportServer_ReportServerServiceWin32_PerfFormattedData_ReportServer_ReportServerService
BytesSentPersecWin32_PerfFormattedData_Tcpip_NBTConnectionWin32_PerfFormattedData_Tcpip_NBTConnection
BytesSentPersecWin32_PerfFormattedData_Tcpip_NetworkAdapterWin32_PerfFormattedData_Tcpip_NetworkAdapter
BytesSentPersecWin32_PerfFormattedData_Tcpip_NetworkInterfaceWin32_PerfFormattedData_Tcpip_NetworkInterface
BytesSentPersecWin32_PerfFormattedData_W3SVC_WebServiceWin32_PerfFormattedData_W3SVC_WebService
BytesSentPersecWin32_PerfRawData_ClussvcPerfProvider_ClusterNetworkMessagesWin32_PerfRawData_ClussvcPerfProvider_ClusterNetworkMessages
BytesSentPersecWin32_PerfRawData_Counters_SMBDirectConnectionWin32_PerfRawData_Counters_SMBDirectConnection
BytesSentPersecWin32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapterWin32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter
BytesSentPersecWin32_PerfRawData_ftpsvc_MicrosoftFTPServiceWin32_PerfRawData_ftpsvc_MicrosoftFTPService
BytesSentPersecWin32_PerfRawData_MSSQLMICROSOFTNumberNumberWID_MSSQLMICROSOFTNumberNumberWIDDatabaseMirroringWin32_PerfRawData_MSSQLMICROSOFTNumberNumberWID_MSSQLMICROSOFTNumberNumberWIDDatabaseMirroring
BytesSentPersecWin32_PerfRawData_MSSQLSERVER_SQLServerDatabaseMirroringWin32_PerfRawData_MSSQLSERVER_SQLServerDatabaseMirroring
BytesSentPersecWin32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapterWin32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapter
BytesSentPersecWin32_PerfRawData_NvspPortStats_HyperVVirtualSwitchPortWin32_PerfRawData_NvspPortStats_HyperVVirtualSwitchPort
BytesSentPersecWin32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitchWin32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch
BytesSentPersecWin32_PerfRawData_PerfNet_ServerWorkQueuesWin32_PerfRawData_PerfNet_ServerWorkQueues
BytesSentPersecWin32_PerfRawData_ReportServer_ReportServerServiceWin32_PerfRawData_ReportServer_ReportServerService
BytesSentPersecWin32_PerfRawData_Tcpip_NBTConnectionWin32_PerfRawData_Tcpip_NBTConnection
BytesSentPersecWin32_PerfRawData_Tcpip_NetworkAdapterWin32_PerfRawData_Tcpip_NetworkAdapter
BytesSentPersecWin32_PerfRawData_Tcpip_NetworkInterfaceWin32_PerfRawData_Tcpip_NetworkInterface
BytesSentPersecWin32_PerfRawData_W3SVC_WebServiceWin32_PerfRawData_W3SVC_WebService

Code samples for BytesSentPersec property

Get instance of WMI class using GetObject, BytesSentPersec property of Win32_PerfRawData_Tcpip_NetworkAdapter

Short VBS code - get a single specified instance of Win32_PerfRawData_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_PerfRawData_Tcpip_NetworkAdapter.Name=""WAN Miniport [IP]""")
Wscript.Echo wmiObject.BytesSentPersec 'or other property name, see properties
See more VBS samples of Win32_PerfRawData_Tcpip_NetworkAdapter class

WMI query - sample windows WQL with C#, BytesSentPersec property of Win32_PerfRawData_Tcpip_NetworkAdapter

Get a specified instance of Win32_PerfRawData_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_PerfRawData_Tcpip_NetworkAdapter Where Name=\"WAN Miniport [IP]\"");

//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("BytesSentPersec : {0}", m["BytesSentPersec"]);
  
}

WMI query - sample windows WQL with VB.Net, BytesSentPersec property of Win32_PerfRawData_Tcpip_NetworkAdapter

Get a specified instance of Win32_PerfRawData_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_PerfRawData_Tcpip_NetworkAdapter Where Name="WAN Miniport [IP]"")

'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("BytesSentPersec : {0}", mObject("BytesSentPersec"))
Next
comments powered by Disqus
WUtils.com