OperationalStatus - property in ROOT\StandardCimv2 namespace

OperationalStatus in other namespaces

List of classes with OperationalStatus local property in ROOT\StandardCimv2 namespace

propertyClassOrigin
OperationalStatusCIM_ManagedSystemElementCIM_ManagedSystemElement

List of classes with OperationalStatus derived property in ROOT\StandardCimv2 namespace

propertyClassOrigin
OperationalStatusCIM_ConcreteJobCIM_ManagedSystemElement
OperationalStatusCIM_DNSProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_EnabledLogicalElementCIM_ManagedSystemElement
OperationalStatusCIM_FilterEntryBaseCIM_ManagedSystemElement
OperationalStatusCIM_IKESAEndpointCIM_ManagedSystemElement
OperationalStatusCIM_IPProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_IPsecSAEndpointCIM_ManagedSystemElement
OperationalStatusCIM_JobCIM_ManagedSystemElement
OperationalStatusCIM_LANEndpointCIM_ManagedSystemElement
OperationalStatusCIM_LogicalDeviceCIM_ManagedSystemElement
OperationalStatusCIM_LogicalElementCIM_ManagedSystemElement
OperationalStatusCIM_LogicalPortCIM_ManagedSystemElement
OperationalStatusCIM_NetworkPipeCIM_ManagedSystemElement
OperationalStatusCIM_NetworkPortCIM_ManagedSystemElement
OperationalStatusCIM_ProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_RemoteServiceAccessPointCIM_ManagedSystemElement
OperationalStatusCIM_SecurityAssociationEndpointCIM_ManagedSystemElement
OperationalStatusCIM_ServiceAccessPointCIM_ManagedSystemElement
OperationalStatusMSFT_DNSClientCIM_ManagedSystemElement
OperationalStatusMSFT_DNSClientServerAddressCIM_ManagedSystemElement
OperationalStatusMSFT_LocalPrinterPortCIM_ManagedSystemElement
OperationalStatusMSFT_LprPrinterPortCIM_ManagedSystemElement
OperationalStatusMSFT_NetAdapterCIM_ManagedSystemElement
OperationalStatusMSFT_NetAddressFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetApplicationFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetBaseIPProtocolCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCacheCacheCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCacheDataCacheCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCacheDataCacheExtensionCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCacheHashCacheCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCachePrimaryCacheCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCacheSecondaryCacheCIM_ManagedSystemElement
OperationalStatusMSFT_NetBranchCacheStatusCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventNetworkAdapterCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventPacketCaptureProviderCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventPacketCaptureTargetCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventProviderCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventProviderBaseCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventSessionCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventVmNetworkAdapterCIM_ManagedSystemElement
OperationalStatusMSFT_NetEventVmSwitchCIM_ManagedSystemElement
OperationalStatusMSFT_NetImPlatAdapterCIM_ManagedSystemElement
OperationalStatusMSFT_NetInterfaceFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetInterfaceTypeFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetIPAddressCIM_ManagedSystemElement
OperationalStatusMSFT_NetIPInterfaceCIM_ManagedSystemElement
OperationalStatusMSFT_NetIPv4ProtocolCIM_ManagedSystemElement
OperationalStatusMSFT_NetIPv6ProtocolCIM_ManagedSystemElement
OperationalStatusMSFT_NetLbfoTeamMemberCIM_ManagedSystemElement
OperationalStatusMSFT_NetLbfoTeamNicCIM_ManagedSystemElement
OperationalStatusMSFT_NetMainModeSACIM_ManagedSystemElement
OperationalStatusMSFT_NetNeighborCIM_ManagedSystemElement
OperationalStatusMSFT_NetNetworkLayerSecurityFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetProtocolPortFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetQuickModeSACIM_ManagedSystemElement
OperationalStatusMSFT_NetServiceFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetSwitchTeamMemberCIM_ManagedSystemElement
OperationalStatusMSFT_NetTCPConnectionCIM_ManagedSystemElement
OperationalStatusMSFT_NetTransportConnectionCIM_ManagedSystemElement
OperationalStatusMSFT_NetTransportFilterCIM_ManagedSystemElement
OperationalStatusMSFT_NetUDPEndpointCIM_ManagedSystemElement
OperationalStatusMSFT_PrinterCIM_ManagedSystemElement
OperationalStatusMSFT_PrinterDriverCIM_ManagedSystemElement
OperationalStatusMSFT_PrinterPortCIM_ManagedSystemElement
OperationalStatusMSFT_PrintJobCIM_ManagedSystemElement
OperationalStatusMSFT_TcpIpPrinterPortCIM_ManagedSystemElement
OperationalStatusMSFT_WsdPrinterPortCIM_ManagedSystemElement

Code samples for OperationalStatus property

Get instance of WMI class using GetObject, OperationalStatus property of MSFT_NetTCPConnection

Short VBS code - get a single specified instance of MSFT_NetTCPConnection 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\StandardCimv2:" + _
 "MSFT_NetTCPConnection.InstanceID=""::++65520++::++0""")
Wscript.Echo wmiObject.OperationalStatus 'or other property name, see properties
See more VBS samples of MSFT_NetTCPConnection class

WMI query - sample windows WQL with C#, OperationalStatus property of MSFT_NetTCPConnection

Get a specified instance of MSFT_NetTCPConnection 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\\StandardCimv2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MSFT_NetTCPConnection Where InstanceID=\"::++65520++::++0\"");

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

WMI query - sample windows WQL with VB.Net, OperationalStatus property of MSFT_NetTCPConnection

Get a specified instance of MSFT_NetTCPConnection 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\StandardCimv2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MSFT_NetTCPConnection Where InstanceID="::++65520++::++0"")

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