TimeOfLastStateChange - property in ROOT\virtualization\v2 namespace

TimeOfLastStateChange in other namespaces

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

propertyClassOrigin
TimeOfLastStateChangeCIM_ConcreteJobCIM_ConcreteJob
TimeOfLastStateChangeCIM_EnabledLogicalElementCIM_EnabledLogicalElement

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

propertyClassOrigin
TimeOfLastStateChangeCIM_CDROMDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ComputerSystemCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_DesktopMonitorCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_DiskDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_DisketteDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_DisplayCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_DisplayControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_DVDDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_EthernetPortCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_FCPortCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ForwardingServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_IDEControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_LANEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_LogicalDeviceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_LogicalDiskCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_LogicalPortCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_MediaAccessDeviceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_MemoryCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_MetricServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_NetworkPortCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_NetworkServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_PointingDeviceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ProcessorCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ProtocolControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ProtocolEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ResourcePoolConfigurationServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_SCSIProtocolControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_SerialControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_ServiceAccessPointCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_StorageExtentCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_SwitchPortCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_SwitchServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_SystemCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_TapeDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_TransparentBridgingServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_USBDeviceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_UserDeviceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_VideoHeadCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_VirtualSystemManagementServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_VirtualSystemMigrationServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_VirtualSystemSnapshotServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_VLANEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_WiFiEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeCIM_WiFiPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ComputerSystemCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ConcreteJobCIM_ConcreteJob
TimeOfLastStateChangeMsvm_CopyFileToGuestJobCIM_ConcreteJob
TimeOfLastStateChangeMsvm_DiskDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_DisketteControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_DisketteDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_DVDDriveCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_EmulatedEthernetPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_EthernetSwitchExtensionCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_EthernetSwitchPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ExternalEthernetPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ExternalFcPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_FcEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_FcSwitchPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_GuestFileServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_GuestServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_GuestServiceInterfaceComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_HeartbeatComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_IDEControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ImageManagementServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_InternalEthernetPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_KeyboardCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_KvpExchangeComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_LANEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_LogicalDiskCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_MemoryCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_MetricServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_MigrationJobCIM_ConcreteJob
TimeOfLastStateChangeMsvm_NumaNodeCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_Physical3dGraphicsProcessorCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_PlannedComputerSystemCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ProcessorCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_Ps2MouseCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_RdvComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ReplicationServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ResourcePoolConfigurationServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_S3DisplayControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SCSIProtocolControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SerialControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SerialPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_ShutdownComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_StorageJobCIM_ConcreteJob
TimeOfLastStateChangeMsvm_Synthetic3DDisplayControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_Synthetic3DServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SyntheticDisplayControllerCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SyntheticEthernetPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SyntheticFcPortCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_SyntheticMouseCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_TerminalConnectionCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_TerminalServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_TimeSyncComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_TransparentBridgingServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VideoHeadCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VirtualEthernetSwitchCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VirtualEthernetSwitchManagementServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VirtualFcSwitchCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VirtualSystemManagementServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VirtualSystemMigrationServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VirtualSystemSnapshotServiceCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VLANEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_VssComponentCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_WiFiEndpointCIM_EnabledLogicalElement
TimeOfLastStateChangeMsvm_WiFiPortCIM_EnabledLogicalElement

Code samples for TimeOfLastStateChange property

Get instance of WMI class using GetObject, TimeOfLastStateChange 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.TimeOfLastStateChange 'or other property name, see properties
See more VBS samples of Msvm_Processor class

WMI query - sample windows WQL with C#, TimeOfLastStateChange 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("TimeOfLastStateChange : {0}", m["TimeOfLastStateChange"]);
  
}

WMI query - sample windows WQL with VB.Net, TimeOfLastStateChange 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("TimeOfLastStateChange : {0}", mObject("TimeOfLastStateChange"))
Next
comments powered by Disqus
WUtils.com