EnabledState - property in ROOT\virtualization\v2 namespace

EnabledState in other namespaces

List of classes with EnabledState local property in ROOT\virtualization\v2 namespace

propertyClassOrigin
EnabledStateCIM_EnabledLogicalElementCIM_EnabledLogicalElement
EnabledStateMsvm_DiskMergeSettingDataMsvm_DiskMergeSettingData
EnabledStateMsvm_EthernetPortAllocationSettingDataMsvm_EthernetPortAllocationSettingData
EnabledStateMsvm_GuestServiceInterfaceComponentSettingDataMsvm_GuestServiceInterfaceComponentSettingData
EnabledStateMsvm_HeartbeatComponentSettingDataMsvm_HeartbeatComponentSettingData
EnabledStateMsvm_KvpExchangeComponentSettingDataMsvm_KvpExchangeComponentSettingData
EnabledStateMsvm_RdvComponentSettingDataMsvm_RdvComponentSettingData
EnabledStateMsvm_ShutdownComponentSettingDataMsvm_ShutdownComponentSettingData
EnabledStateMsvm_SummaryInformationMsvm_SummaryInformation
EnabledStateMsvm_TimeSyncComponentSettingDataMsvm_TimeSyncComponentSettingData
EnabledStateMsvm_VssComponentSettingDataMsvm_VssComponentSettingData

List of classes with EnabledState derived property in ROOT\virtualization\v2 namespace

propertyClassOrigin
EnabledStateCIM_CDROMDriveCIM_EnabledLogicalElement
EnabledStateCIM_ComputerSystemCIM_EnabledLogicalElement
EnabledStateCIM_ControllerCIM_EnabledLogicalElement
EnabledStateCIM_DesktopMonitorCIM_EnabledLogicalElement
EnabledStateCIM_DiskDriveCIM_EnabledLogicalElement
EnabledStateCIM_DisketteDriveCIM_EnabledLogicalElement
EnabledStateCIM_DisplayCIM_EnabledLogicalElement
EnabledStateCIM_DisplayControllerCIM_EnabledLogicalElement
EnabledStateCIM_DVDDriveCIM_EnabledLogicalElement
EnabledStateCIM_EthernetPortCIM_EnabledLogicalElement
EnabledStateCIM_FCPortCIM_EnabledLogicalElement
EnabledStateCIM_ForwardingServiceCIM_EnabledLogicalElement
EnabledStateCIM_IDEControllerCIM_EnabledLogicalElement
EnabledStateCIM_LANEndpointCIM_EnabledLogicalElement
EnabledStateCIM_LogicalDeviceCIM_EnabledLogicalElement
EnabledStateCIM_LogicalDiskCIM_EnabledLogicalElement
EnabledStateCIM_LogicalPortCIM_EnabledLogicalElement
EnabledStateCIM_MediaAccessDeviceCIM_EnabledLogicalElement
EnabledStateCIM_MemoryCIM_EnabledLogicalElement
EnabledStateCIM_MetricServiceCIM_EnabledLogicalElement
EnabledStateCIM_NetworkPortCIM_EnabledLogicalElement
EnabledStateCIM_NetworkServiceCIM_EnabledLogicalElement
EnabledStateCIM_PointingDeviceCIM_EnabledLogicalElement
EnabledStateCIM_ProcessorCIM_EnabledLogicalElement
EnabledStateCIM_ProtocolControllerCIM_EnabledLogicalElement
EnabledStateCIM_ProtocolEndpointCIM_EnabledLogicalElement
EnabledStateCIM_ResourcePoolConfigurationServiceCIM_EnabledLogicalElement
EnabledStateCIM_SCSIProtocolControllerCIM_EnabledLogicalElement
EnabledStateCIM_SerialControllerCIM_EnabledLogicalElement
EnabledStateCIM_ServiceCIM_EnabledLogicalElement
EnabledStateCIM_ServiceAccessPointCIM_EnabledLogicalElement
EnabledStateCIM_StorageExtentCIM_EnabledLogicalElement
EnabledStateCIM_SwitchPortCIM_EnabledLogicalElement
EnabledStateCIM_SwitchServiceCIM_EnabledLogicalElement
EnabledStateCIM_SystemCIM_EnabledLogicalElement
EnabledStateCIM_TapeDriveCIM_EnabledLogicalElement
EnabledStateCIM_TransparentBridgingServiceCIM_EnabledLogicalElement
EnabledStateCIM_USBDeviceCIM_EnabledLogicalElement
EnabledStateCIM_UserDeviceCIM_EnabledLogicalElement
EnabledStateCIM_VideoHeadCIM_EnabledLogicalElement
EnabledStateCIM_VirtualSystemManagementServiceCIM_EnabledLogicalElement
EnabledStateCIM_VirtualSystemMigrationServiceCIM_EnabledLogicalElement
EnabledStateCIM_VirtualSystemSnapshotServiceCIM_EnabledLogicalElement
EnabledStateCIM_VLANEndpointCIM_EnabledLogicalElement
EnabledStateCIM_WiFiEndpointCIM_EnabledLogicalElement
EnabledStateCIM_WiFiPortCIM_EnabledLogicalElement
EnabledStateMsvm_ComputerSystemCIM_EnabledLogicalElement
EnabledStateMsvm_DiskDriveCIM_EnabledLogicalElement
EnabledStateMsvm_DisketteControllerCIM_EnabledLogicalElement
EnabledStateMsvm_DisketteDriveCIM_EnabledLogicalElement
EnabledStateMsvm_DVDDriveCIM_EnabledLogicalElement
EnabledStateMsvm_EmulatedEthernetPortCIM_EnabledLogicalElement
EnabledStateMsvm_EthernetSwitchExtensionCIM_EnabledLogicalElement
EnabledStateMsvm_EthernetSwitchPortCIM_EnabledLogicalElement
EnabledStateMsvm_ExternalEthernetPortCIM_EnabledLogicalElement
EnabledStateMsvm_ExternalFcPortCIM_EnabledLogicalElement
EnabledStateMsvm_FcEndpointCIM_EnabledLogicalElement
EnabledStateMsvm_FcSwitchPortCIM_EnabledLogicalElement
EnabledStateMsvm_GuestFileServiceCIM_EnabledLogicalElement
EnabledStateMsvm_GuestServiceCIM_EnabledLogicalElement
EnabledStateMsvm_GuestServiceInterfaceComponentCIM_EnabledLogicalElement
EnabledStateMsvm_HeartbeatComponentCIM_EnabledLogicalElement
EnabledStateMsvm_IDEControllerCIM_EnabledLogicalElement
EnabledStateMsvm_ImageManagementServiceCIM_EnabledLogicalElement
EnabledStateMsvm_InternalEthernetPortCIM_EnabledLogicalElement
EnabledStateMsvm_KeyboardCIM_EnabledLogicalElement
EnabledStateMsvm_KvpExchangeComponentCIM_EnabledLogicalElement
EnabledStateMsvm_LANEndpointCIM_EnabledLogicalElement
EnabledStateMsvm_LogicalDiskCIM_EnabledLogicalElement
EnabledStateMsvm_MemoryCIM_EnabledLogicalElement
EnabledStateMsvm_MetricServiceCIM_EnabledLogicalElement
EnabledStateMsvm_NumaNodeCIM_EnabledLogicalElement
EnabledStateMsvm_Physical3dGraphicsProcessorCIM_EnabledLogicalElement
EnabledStateMsvm_PlannedComputerSystemCIM_EnabledLogicalElement
EnabledStateMsvm_ProcessorCIM_EnabledLogicalElement
EnabledStateMsvm_Ps2MouseCIM_EnabledLogicalElement
EnabledStateMsvm_RdvComponentCIM_EnabledLogicalElement
EnabledStateMsvm_ReplicationServiceCIM_EnabledLogicalElement
EnabledStateMsvm_ResourcePoolConfigurationServiceCIM_EnabledLogicalElement
EnabledStateMsvm_S3DisplayControllerCIM_EnabledLogicalElement
EnabledStateMsvm_SCSIProtocolControllerCIM_EnabledLogicalElement
EnabledStateMsvm_SerialControllerCIM_EnabledLogicalElement
EnabledStateMsvm_SerialPortCIM_EnabledLogicalElement
EnabledStateMsvm_ShutdownComponentCIM_EnabledLogicalElement
EnabledStateMsvm_Synthetic3DDisplayControllerCIM_EnabledLogicalElement
EnabledStateMsvm_Synthetic3DServiceCIM_EnabledLogicalElement
EnabledStateMsvm_SyntheticDisplayControllerCIM_EnabledLogicalElement
EnabledStateMsvm_SyntheticEthernetPortCIM_EnabledLogicalElement
EnabledStateMsvm_SyntheticFcPortCIM_EnabledLogicalElement
EnabledStateMsvm_SyntheticMouseCIM_EnabledLogicalElement
EnabledStateMsvm_TerminalConnectionCIM_EnabledLogicalElement
EnabledStateMsvm_TerminalServiceCIM_EnabledLogicalElement
EnabledStateMsvm_TimeSyncComponentCIM_EnabledLogicalElement
EnabledStateMsvm_TransparentBridgingServiceCIM_EnabledLogicalElement
EnabledStateMsvm_VideoHeadCIM_EnabledLogicalElement
EnabledStateMsvm_VirtualEthernetSwitchCIM_EnabledLogicalElement
EnabledStateMsvm_VirtualEthernetSwitchManagementServiceCIM_EnabledLogicalElement
EnabledStateMsvm_VirtualFcSwitchCIM_EnabledLogicalElement
EnabledStateMsvm_VirtualSystemManagementServiceCIM_EnabledLogicalElement
EnabledStateMsvm_VirtualSystemMigrationServiceCIM_EnabledLogicalElement
EnabledStateMsvm_VirtualSystemSnapshotServiceCIM_EnabledLogicalElement
EnabledStateMsvm_VLANEndpointCIM_EnabledLogicalElement
EnabledStateMsvm_VssComponentCIM_EnabledLogicalElement
EnabledStateMsvm_WiFiEndpointCIM_EnabledLogicalElement
EnabledStateMsvm_WiFiPortCIM_EnabledLogicalElement

Code samples for EnabledState property

Get instance of WMI class using GetObject, EnabledState property of Msvm_EthernetPortAllocationSettingData

Short VBS code - get a single specified instance of Msvm_EthernetPortAllocationSettingData 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\virtualization\v2:" + _
 "Msvm_EthernetPortAllocationSettingData.InstanceID=""Microsoft:Definition\\72027ECE-E44A-446E-AF2B-8D8C4B8A2279\\Default""")
Wscript.Echo wmiObject.EnabledState 'or other property name, see properties
See more VBS samples of Msvm_EthernetPortAllocationSettingData class

WMI query - sample windows WQL with C#, EnabledState property of Msvm_EthernetPortAllocationSettingData

Get a specified instance of Msvm_EthernetPortAllocationSettingData 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\\virtualization\\v2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Msvm_EthernetPortAllocationSettingData Where InstanceID=\"Microsoft:Definition\\\\72027ECE-E44A-446E-AF2B-8D8C4B8A2279\\\\Default\"");

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

WMI query - sample windows WQL with VB.Net, EnabledState property of Msvm_EthernetPortAllocationSettingData

Get a specified instance of Msvm_EthernetPortAllocationSettingData 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\virtualization\v2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Msvm_EthernetPortAllocationSettingData Where InstanceID="Microsoft:Definition\\72027ECE-E44A-446E-AF2B-8D8C4B8A2279\\Default"")

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