Status - property in ROOT\WMI namespace

Status in other namespaces

List of classes with Status local property in ROOT\WMI namespace

propertyClassOrigin
StatusAcpiControlStatusAcpiControlStatus
StatusAcpiPctAcpiPct
StatusAcpiPssStateAcpiPssState
StatusALPC_UnwaitALPC_Unwait
StatusAspNetCompileLeaveAspNetCompileLeave
StatusAspNetRoleManagerIsUserInRoleAspNetRoleManagerIsUserInRole
Statusauto_statsauto_stats
Statuschange_tracking_cleanupchange_tracking_cleanup
StatusFileOperationFileOperation
Statusfilestream_file_io_responsefilestream_file_io_response
StatusFltIoFailureFltIoFailure
StatusGetValuePackageGetValuePackage
Statushadr_db_manager_backup_info_msghadr_db_manager_backup_info_msg
Statushadr_db_manager_filemetadata_requesthadr_db_manager_filemetadata_request
Statushadr_db_manager_page_requesthadr_db_manager_page_request
Statushadr_worker_pool_taskhadr_worker_pool_task
Statushadr_worker_pool_threadhadr_worker_pool_thread
StatusKerbAcceptSecurityContext_EndKerbAcceptSecurityContext_End
StatusKerbChangePassword_EndKerbChangePassword_End
StatusKerbInitSecurityContext_EndKerbInitSecurityContext_End
StatusKerbLogonUser_EndKerbLogonUser_End
StatusKerbSetPassword_EndKerbSetPassword_End
StatusKernelPerfStateKernelPerfState
StatusKernelPerfStateChangeKernelPerfStateChange
Statuslatch_acquire_timelatch_acquire_time
StatusMS_SMHBA_BINDINGENTRYMS_SMHBA_BINDINGENTRY
StatusMSFC_VirtualFibrePortAttributesMSFC_VirtualFibrePortAttributes
StatusMSiSCSI_HBAInformationMSiSCSI_HBAInformation
StatusNlServerAuth_EndNlServerAuth_End
StatusNtlmClientInitialize_EndNtlmClientInitialize_End
StatusNtlmLogonUser_EndNtlmLogonUser_End
StatusNtlmServerAccept_EndNtlmServerAccept_End
Statuspage_reference_trackerpage_reference_tracker
StatusProcessorAcpiTssStateProcessorAcpiTssState
StatusProcessorAcpiXpssStateProcessorAcpiXpssState
StatusRegistry_TxRRegistry_TxR
StatusRegistry_TypeGroup1Registry_TypeGroup1
StatusRegistry_V0_TypeGroup1Registry_V0_TypeGroup1
StatusRegistry_V1_TypeGroup1Registry_V1_TypeGroup1
StatusUmsDisassociateUmsDisassociate
StatusW3WebSocketCloseReceivedW3WebSocketCloseReceived
StatusW3WebSocketCloseSendStartW3WebSocketCloseSendStart
StatusWT_DiskWT_Disk
StatusWT_HostWT_Host
StatusWT_SnapshotWT_Snapshot

Code samples for Status property

Get instance of WMI class using GetObject, Status property of MSiSCSI_HBAInformation

Short VBS code - get a single specified instance of MSiSCSI_HBAInformation 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\WMI:" + _
 "MSiSCSI_HBAInformation.InstanceName=""ROOT\\ISCSIPRT\\0000_0""")
Wscript.Echo wmiObject.Status 'or other property name, see properties
See more VBS samples of MSiSCSI_HBAInformation class

WMI query - sample windows WQL with C#, Status property of MSiSCSI_HBAInformation

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

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MSiSCSI_HBAInformation Where InstanceName=\"ROOT\\\\ISCSIPRT\\\\0000_0\"");

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

WMI query - sample windows WQL with VB.Net, Status property of MSiSCSI_HBAInformation

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

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MSiSCSI_HBAInformation Where InstanceName="ROOT\\ISCSIPRT\\0000_0"")

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