PrimaryStatus - property in ROOT\StandardCimv2\MS_409 namespace

PrimaryStatus in other namespaces

List of classes with PrimaryStatus local property in ROOT\StandardCimv2\MS_409 namespace

propertyClassOrigin
PrimaryStatusCIM_ManagedSystemElementCIM_ManagedSystemElement
PrimaryStatusMSFT_NetFirewallRuleMSFT_NetFirewallRule
PrimaryStatusMSFT_NetIKEAuthSetMSFT_NetIKEAuthSet
PrimaryStatusMSFT_NetIKECryptoSetMSFT_NetIKECryptoSet
PrimaryStatusMSFT_NetSARuleMSFT_NetSARule

List of classes with PrimaryStatus derived property in ROOT\StandardCimv2\MS_409 namespace

propertyClassOrigin
PrimaryStatusCIM_ConcreteJobCIM_ManagedSystemElement
PrimaryStatusCIM_EnabledLogicalElementCIM_ManagedSystemElement
PrimaryStatusCIM_FilterEntryBaseCIM_ManagedSystemElement
PrimaryStatusCIM_IKESAEndpointCIM_ManagedSystemElement
PrimaryStatusCIM_IPProtocolEndpointCIM_ManagedSystemElement
PrimaryStatusCIM_IPsecSAEndpointCIM_ManagedSystemElement
PrimaryStatusCIM_JobCIM_ManagedSystemElement
PrimaryStatusCIM_LANEndpointCIM_ManagedSystemElement
PrimaryStatusCIM_LogicalDeviceCIM_ManagedSystemElement
PrimaryStatusCIM_LogicalElementCIM_ManagedSystemElement
PrimaryStatusCIM_LogicalPortCIM_ManagedSystemElement
PrimaryStatusCIM_NetworkPipeCIM_ManagedSystemElement
PrimaryStatusCIM_NetworkPortCIM_ManagedSystemElement
PrimaryStatusCIM_ProtocolEndpointCIM_ManagedSystemElement
PrimaryStatusCIM_RemoteServiceAccessPointCIM_ManagedSystemElement
PrimaryStatusCIM_SecurityAssociationEndpointCIM_ManagedSystemElement
PrimaryStatusCIM_ServiceAccessPointCIM_ManagedSystemElement
PrimaryStatusMSFT_LocalPrinterPortCIM_ManagedSystemElement
PrimaryStatusMSFT_LprPrinterPortCIM_ManagedSystemElement
PrimaryStatusMSFT_NetAdapterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetAddressFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetApplicationFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBaseIPProtocolCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCacheCacheCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCacheDataCacheCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCacheDataCacheExtensionCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCacheHashCacheCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCachePrimaryCacheCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCacheSecondaryCacheCIM_ManagedSystemElement
PrimaryStatusMSFT_NetBranchCacheStatusCIM_ManagedSystemElement
PrimaryStatusMSFT_NetConSecRuleMSFT_NetSARule
PrimaryStatusMSFT_NetEventNetworkAdapterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventPacketCaptureProviderCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventPacketCaptureTargetCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventProviderCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventProviderBaseCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventSessionCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventVmNetworkAdapterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetEventVmSwitchCIM_ManagedSystemElement
PrimaryStatusMSFT_NetIKEMMCryptoSetMSFT_NetIKECryptoSet
PrimaryStatusMSFT_NetIKEP1AuthSetMSFT_NetIKEAuthSet
PrimaryStatusMSFT_NetIKEP2AuthSetMSFT_NetIKEAuthSet
PrimaryStatusMSFT_NetIKEQMCryptoSetMSFT_NetIKECryptoSet
PrimaryStatusMSFT_NetInterfaceFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetInterfaceTypeFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetIPAddressCIM_ManagedSystemElement
PrimaryStatusMSFT_NetIPInterfaceCIM_ManagedSystemElement
PrimaryStatusMSFT_NetIPv4ProtocolCIM_ManagedSystemElement
PrimaryStatusMSFT_NetIPv6ProtocolCIM_ManagedSystemElement
PrimaryStatusMSFT_NetMainModeRuleMSFT_NetSARule
PrimaryStatusMSFT_NetMainModeSACIM_ManagedSystemElement
PrimaryStatusMSFT_NetNeighborCIM_ManagedSystemElement
PrimaryStatusMSFT_NetNetworkLayerSecurityFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetProtocolPortFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetQuickModeSACIM_ManagedSystemElement
PrimaryStatusMSFT_NetServiceFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetTCPConnectionCIM_ManagedSystemElement
PrimaryStatusMSFT_NetTransportConnectionCIM_ManagedSystemElement
PrimaryStatusMSFT_NetTransportFilterCIM_ManagedSystemElement
PrimaryStatusMSFT_NetUDPEndpointCIM_ManagedSystemElement
PrimaryStatusMSFT_PrinterCIM_ManagedSystemElement
PrimaryStatusMSFT_PrinterDriverCIM_ManagedSystemElement
PrimaryStatusMSFT_PrinterPortCIM_ManagedSystemElement
PrimaryStatusMSFT_PrintJobCIM_ManagedSystemElement
PrimaryStatusMSFT_TcpIpPrinterPortCIM_ManagedSystemElement
PrimaryStatusMSFT_WsdPrinterPortCIM_ManagedSystemElement

Code samples for PrimaryStatus property

Get instance of WMI class using GetObject, PrimaryStatus property of MSFT_NetBranchCacheHashCache

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

WMI query - sample windows WQL with C#, PrimaryStatus property of MSFT_NetBranchCacheHashCache

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

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MSFT_NetBranchCacheHashCache");

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

WMI query - sample windows WQL with VB.Net, PrimaryStatus property of MSFT_NetBranchCacheHashCache

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

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MSFT_NetBranchCacheHashCache")

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