RequestedState - property in ROOT\virtualization\v2 namespace

RequestedState in other namespaces

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

propertyClassOrigin
RequestedStateCIM_EnabledLogicalElementCIM_EnabledLogicalElement

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

propertyClassOrigin
RequestedStateCIM_CDROMDriveCIM_EnabledLogicalElement
RequestedStateCIM_ComputerSystemCIM_EnabledLogicalElement
RequestedStateCIM_ControllerCIM_EnabledLogicalElement
RequestedStateCIM_DesktopMonitorCIM_EnabledLogicalElement
RequestedStateCIM_DiskDriveCIM_EnabledLogicalElement
RequestedStateCIM_DisketteDriveCIM_EnabledLogicalElement
RequestedStateCIM_DisplayCIM_EnabledLogicalElement
RequestedStateCIM_DisplayControllerCIM_EnabledLogicalElement
RequestedStateCIM_DVDDriveCIM_EnabledLogicalElement
RequestedStateCIM_EthernetPortCIM_EnabledLogicalElement
RequestedStateCIM_FCPortCIM_EnabledLogicalElement
RequestedStateCIM_ForwardingServiceCIM_EnabledLogicalElement
RequestedStateCIM_IDEControllerCIM_EnabledLogicalElement
RequestedStateCIM_LANEndpointCIM_EnabledLogicalElement
RequestedStateCIM_LogicalDeviceCIM_EnabledLogicalElement
RequestedStateCIM_LogicalDiskCIM_EnabledLogicalElement
RequestedStateCIM_LogicalPortCIM_EnabledLogicalElement
RequestedStateCIM_MediaAccessDeviceCIM_EnabledLogicalElement
RequestedStateCIM_MemoryCIM_EnabledLogicalElement
RequestedStateCIM_MetricServiceCIM_EnabledLogicalElement
RequestedStateCIM_NetworkPortCIM_EnabledLogicalElement
RequestedStateCIM_NetworkServiceCIM_EnabledLogicalElement
RequestedStateCIM_PointingDeviceCIM_EnabledLogicalElement
RequestedStateCIM_ProcessorCIM_EnabledLogicalElement
RequestedStateCIM_ProtocolControllerCIM_EnabledLogicalElement
RequestedStateCIM_ProtocolEndpointCIM_EnabledLogicalElement
RequestedStateCIM_ResourcePoolConfigurationServiceCIM_EnabledLogicalElement
RequestedStateCIM_SCSIProtocolControllerCIM_EnabledLogicalElement
RequestedStateCIM_SerialControllerCIM_EnabledLogicalElement
RequestedStateCIM_ServiceCIM_EnabledLogicalElement
RequestedStateCIM_ServiceAccessPointCIM_EnabledLogicalElement
RequestedStateCIM_StorageExtentCIM_EnabledLogicalElement
RequestedStateCIM_SwitchPortCIM_EnabledLogicalElement
RequestedStateCIM_SwitchServiceCIM_EnabledLogicalElement
RequestedStateCIM_SystemCIM_EnabledLogicalElement
RequestedStateCIM_TapeDriveCIM_EnabledLogicalElement
RequestedStateCIM_TransparentBridgingServiceCIM_EnabledLogicalElement
RequestedStateCIM_USBDeviceCIM_EnabledLogicalElement
RequestedStateCIM_UserDeviceCIM_EnabledLogicalElement
RequestedStateCIM_VideoHeadCIM_EnabledLogicalElement
RequestedStateCIM_VirtualSystemManagementServiceCIM_EnabledLogicalElement
RequestedStateCIM_VirtualSystemMigrationServiceCIM_EnabledLogicalElement
RequestedStateCIM_VirtualSystemSnapshotServiceCIM_EnabledLogicalElement
RequestedStateCIM_VLANEndpointCIM_EnabledLogicalElement
RequestedStateCIM_WiFiEndpointCIM_EnabledLogicalElement
RequestedStateCIM_WiFiPortCIM_EnabledLogicalElement
RequestedStateMsvm_ComputerSystemCIM_EnabledLogicalElement
RequestedStateMsvm_DiskDriveCIM_EnabledLogicalElement
RequestedStateMsvm_DisketteControllerCIM_EnabledLogicalElement
RequestedStateMsvm_DisketteDriveCIM_EnabledLogicalElement
RequestedStateMsvm_DVDDriveCIM_EnabledLogicalElement
RequestedStateMsvm_EmulatedEthernetPortCIM_EnabledLogicalElement
RequestedStateMsvm_EthernetSwitchExtensionCIM_EnabledLogicalElement
RequestedStateMsvm_EthernetSwitchPortCIM_EnabledLogicalElement
RequestedStateMsvm_ExternalEthernetPortCIM_EnabledLogicalElement
RequestedStateMsvm_ExternalFcPortCIM_EnabledLogicalElement
RequestedStateMsvm_FcEndpointCIM_EnabledLogicalElement
RequestedStateMsvm_FcSwitchPortCIM_EnabledLogicalElement
RequestedStateMsvm_GuestFileServiceCIM_EnabledLogicalElement
RequestedStateMsvm_GuestServiceCIM_EnabledLogicalElement
RequestedStateMsvm_GuestServiceInterfaceComponentCIM_EnabledLogicalElement
RequestedStateMsvm_HeartbeatComponentCIM_EnabledLogicalElement
RequestedStateMsvm_IDEControllerCIM_EnabledLogicalElement
RequestedStateMsvm_ImageManagementServiceCIM_EnabledLogicalElement
RequestedStateMsvm_InternalEthernetPortCIM_EnabledLogicalElement
RequestedStateMsvm_KeyboardCIM_EnabledLogicalElement
RequestedStateMsvm_KvpExchangeComponentCIM_EnabledLogicalElement
RequestedStateMsvm_LANEndpointCIM_EnabledLogicalElement
RequestedStateMsvm_LogicalDiskCIM_EnabledLogicalElement
RequestedStateMsvm_MemoryCIM_EnabledLogicalElement
RequestedStateMsvm_MetricServiceCIM_EnabledLogicalElement
RequestedStateMsvm_NumaNodeCIM_EnabledLogicalElement
RequestedStateMsvm_Physical3dGraphicsProcessorCIM_EnabledLogicalElement
RequestedStateMsvm_PlannedComputerSystemCIM_EnabledLogicalElement
RequestedStateMsvm_ProcessorCIM_EnabledLogicalElement
RequestedStateMsvm_Ps2MouseCIM_EnabledLogicalElement
RequestedStateMsvm_RdvComponentCIM_EnabledLogicalElement
RequestedStateMsvm_ReplicationServiceCIM_EnabledLogicalElement
RequestedStateMsvm_ResourcePoolConfigurationServiceCIM_EnabledLogicalElement
RequestedStateMsvm_S3DisplayControllerCIM_EnabledLogicalElement
RequestedStateMsvm_SCSIProtocolControllerCIM_EnabledLogicalElement
RequestedStateMsvm_SerialControllerCIM_EnabledLogicalElement
RequestedStateMsvm_SerialPortCIM_EnabledLogicalElement
RequestedStateMsvm_ShutdownComponentCIM_EnabledLogicalElement
RequestedStateMsvm_Synthetic3DDisplayControllerCIM_EnabledLogicalElement
RequestedStateMsvm_Synthetic3DServiceCIM_EnabledLogicalElement
RequestedStateMsvm_SyntheticDisplayControllerCIM_EnabledLogicalElement
RequestedStateMsvm_SyntheticEthernetPortCIM_EnabledLogicalElement
RequestedStateMsvm_SyntheticFcPortCIM_EnabledLogicalElement
RequestedStateMsvm_SyntheticMouseCIM_EnabledLogicalElement
RequestedStateMsvm_TerminalConnectionCIM_EnabledLogicalElement
RequestedStateMsvm_TerminalServiceCIM_EnabledLogicalElement
RequestedStateMsvm_TimeSyncComponentCIM_EnabledLogicalElement
RequestedStateMsvm_TransparentBridgingServiceCIM_EnabledLogicalElement
RequestedStateMsvm_VideoHeadCIM_EnabledLogicalElement
RequestedStateMsvm_VirtualEthernetSwitchCIM_EnabledLogicalElement
RequestedStateMsvm_VirtualEthernetSwitchManagementServiceCIM_EnabledLogicalElement
RequestedStateMsvm_VirtualFcSwitchCIM_EnabledLogicalElement
RequestedStateMsvm_VirtualSystemManagementServiceCIM_EnabledLogicalElement
RequestedStateMsvm_VirtualSystemMigrationServiceCIM_EnabledLogicalElement
RequestedStateMsvm_VirtualSystemSnapshotServiceCIM_EnabledLogicalElement
RequestedStateMsvm_VLANEndpointCIM_EnabledLogicalElement
RequestedStateMsvm_VssComponentCIM_EnabledLogicalElement
RequestedStateMsvm_WiFiEndpointCIM_EnabledLogicalElement
RequestedStateMsvm_WiFiPortCIM_EnabledLogicalElement

Code samples for RequestedState property

Get instance of WMI class using GetObject, RequestedState property of Msvm_Processor

Short VBS code - get a single specified instance of Msvm_Processor 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_Processor.CreationClassName=""Msvm_Processor"",DeviceID=""Microsoft:B637F347-6A0E-4DEC-AF52-BD70CB80A21D\\0\\0"",SystemCreationClassName=""Msvm_ComputerSystem"",SystemName="".""")
Wscript.Echo wmiObject.RequestedState 'or other property name, see properties
See more VBS samples of Msvm_Processor class

WMI query - sample windows WQL with C#, RequestedState property of Msvm_Processor

Get a specified instance of Msvm_Processor 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_Processor Where CreationClassName=\"Msvm_Processor\"DeviceID=\"Microsoft:B637F347-6A0E-4DEC-AF52-BD70CB80A21D\\\\0\\\\0\"SystemCreationClassName=\"Msvm_ComputerSystem\"SystemName=\"W2012SDC\"");

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

WMI query - sample windows WQL with VB.Net, RequestedState property of Msvm_Processor

Get a specified instance of Msvm_Processor 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_Processor Where CreationClassName="Msvm_Processor"DeviceID="Microsoft:B637F347-6A0E-4DEC-AF52-BD70CB80A21D\\0\\0"SystemCreationClassName="Msvm_ComputerSystem"SystemName="W2012SDC"")

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