InstallDate - property in ROOT\CIMV2\storage\iscsitarget namespace

InstallDate in other namespaces

List of classes with InstallDate local property in ROOT\CIMV2\storage\iscsitarget namespace

propertyClassOrigin
InstallDateCIM_ManagedSystemElementCIM_ManagedSystemElement

List of classes with InstallDate derived property in ROOT\CIMV2\storage\iscsitarget namespace

propertyClassOrigin
InstallDateCIM_AuthenticationServiceCIM_ManagedSystemElement
InstallDateCIM_ComputerSystemCIM_ManagedSystemElement
InstallDateCIM_ConcreteJobCIM_ManagedSystemElement
InstallDateCIM_ControllerConfigurationServiceCIM_ManagedSystemElement
InstallDateCIM_EnabledLogicalElementCIM_ManagedSystemElement
InstallDateCIM_EthernetPortCIM_ManagedSystemElement
InstallDateCIM_IdentityManagementServiceCIM_ManagedSystemElement
InstallDateCIM_IPProtocolEndpointCIM_ManagedSystemElement
InstallDateCIM_iSCSIConfigurationServiceCIM_ManagedSystemElement
InstallDateCIM_iSCSIConnectionCIM_ManagedSystemElement
InstallDateCIM_iSCSIProtocolEndpointCIM_ManagedSystemElement
InstallDateCIM_iSCSISessionCIM_ManagedSystemElement
InstallDateCIM_JobCIM_ManagedSystemElement
InstallDateCIM_LogicalDeviceCIM_ManagedSystemElement
InstallDateCIM_LogicalElementCIM_ManagedSystemElement
InstallDateCIM_LogicalPortCIM_ManagedSystemElement
InstallDateCIM_NetworkPipeCIM_ManagedSystemElement
InstallDateCIM_NetworkPortCIM_ManagedSystemElement
InstallDateCIM_ObjectManagerCIM_ManagedSystemElement
InstallDateCIM_ObjectManagerCommunicationMechanismCIM_ManagedSystemElement
InstallDateCIM_ProtocolControllerCIM_ManagedSystemElement
InstallDateCIM_ProtocolEndpointCIM_ManagedSystemElement
InstallDateCIM_ReplicationServiceCIM_ManagedSystemElement
InstallDateCIM_ResourcePoolCIM_ManagedSystemElement
InstallDateCIM_SCSIProtocolControllerCIM_ManagedSystemElement
InstallDateCIM_SCSIProtocolEndpointCIM_ManagedSystemElement
InstallDateCIM_SecurityServiceCIM_ManagedSystemElement
InstallDateCIM_ServiceCIM_ManagedSystemElement
InstallDateCIM_ServiceAccessPointCIM_ManagedSystemElement
InstallDateCIM_SoftwareIdentityCIM_ManagedSystemElement
InstallDateCIM_StorageConfigurationServiceCIM_ManagedSystemElement
InstallDateCIM_StorageExtentCIM_ManagedSystemElement
InstallDateCIM_StorageHardwareIDManagementServiceCIM_ManagedSystemElement
InstallDateCIM_StoragePoolCIM_ManagedSystemElement
InstallDateCIM_StorageVolumeCIM_ManagedSystemElement
InstallDateCIM_SystemCIM_ManagedSystemElement
InstallDateCIM_TCPProtocolEndpointCIM_ManagedSystemElement
InstallDateCIM_WBEMServiceCIM_ManagedSystemElement
InstallDateMSFTSM_ComputerSystemCIM_ManagedSystemElement
InstallDateMSFTSM_ObjectManagerCIM_ManagedSystemElement
InstallDateMSFTSM_SoftwareIdentityCIM_ManagedSystemElement
InstallDateMSFTSM_SystemCIM_ManagedSystemElement
InstallDateMSFTSM_WSManCommunicationMechanismCIM_ManagedSystemElement
InstallDateMSFTSMNET_EthernetPortCIM_ManagedSystemElement
InstallDateMSFTSMNET_IPProtocolEndpointCIM_ManagedSystemElement
InstallDateMSISCSITARGET_ConcreteJobCIM_ManagedSystemElement
InstallDateMSISCSITARGET_ControllerConfigurationServiceCIM_ManagedSystemElement
InstallDateMSISCSITARGET_iSCSIConfigurationServiceCIM_ManagedSystemElement
InstallDateMSISCSITARGET_iSCSIConnectionCIM_ManagedSystemElement
InstallDateMSISCSITARGET_iSCSIProtocolEndpointCIM_ManagedSystemElement
InstallDateMSISCSITARGET_iSCSISessionCIM_ManagedSystemElement
InstallDateMSISCSITARGET_ReplicationServiceCIM_ManagedSystemElement
InstallDateMSISCSITARGET_SCSIProtocolControllerCIM_ManagedSystemElement
InstallDateMSISCSITARGET_StorageConfigurationServiceCIM_ManagedSystemElement
InstallDateMSISCSITARGET_StorageHardwareIDManagementServiceCIM_ManagedSystemElement
InstallDateMSISCSITARGET_StoragePoolCIM_ManagedSystemElement
InstallDateMSISCSITARGET_StorageVolumeCIM_ManagedSystemElement
InstallDateMSISCSITARGET_TCPProtocolEndpointCIM_ManagedSystemElement

Code samples for InstallDate property

Get instance of WMI class using GetObject, InstallDate property of MSFTSM_WSManCommunicationMechanism

Short VBS code - get a single specified instance of MSFTSM_WSManCommunicationMechanism 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\CIMV2\storage\iscsitarget:" + _
 "MSFTSM_WSManCommunicationMechanism.CreationClassName=""MSFTSM_WSManCommunicationMechanism"",Name=""MSFT:SM.WS-Management"",SystemCreationClassName=""MSFTSM_System"",SystemName=""MS iSCSITarget: ..rootdomain.com""")
Wscript.Echo wmiObject.InstallDate 'or other property name, see properties
See more VBS samples of MSFTSM_WSManCommunicationMechanism class

WMI query - sample windows WQL with C#, InstallDate property of MSFTSM_WSManCommunicationMechanism

Get a specified instance of MSFTSM_WSManCommunicationMechanism 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\\CIMV2\\storage\\iscsitarget");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MSFTSM_WSManCommunicationMechanism Where CreationClassName=\"MSFTSM_WSManCommunicationMechanism\"Name=\"MSFT:SM.WS-Management\"SystemCreationClassName=\"MSFTSM_System\"SystemName=\"MS iSCSITarget: W2012SDC.rootdomain.com\"");

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

WMI query - sample windows WQL with VB.Net, InstallDate property of MSFTSM_WSManCommunicationMechanism

Get a specified instance of MSFTSM_WSManCommunicationMechanism 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\CIMV2\storage\iscsitarget")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MSFTSM_WSManCommunicationMechanism Where CreationClassName="MSFTSM_WSManCommunicationMechanism"Name="MSFT:SM.WS-Management"SystemCreationClassName="MSFTSM_System"SystemName="MS iSCSITarget: W2012SDC.rootdomain.com"")

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