description - property in ROOT\Hardware namespace

description in other namespaces

List of classes with description local property in ROOT\Hardware namespace

propertyClassOrigin
description__ExtendedStatus__ExtendedStatus
descriptionCIM_ManagedElementCIM_ManagedElement

List of classes with description derived property in ROOT\Hardware namespace

propertyClassOrigin
descriptionAccountCIM_ManagedElement
descriptionAdminDomainCIM_ManagedElement
descriptionAuthorizedPrivilegeCIM_ManagedElement
descriptionCIM_AccountCIM_ManagedElement
descriptionCIM_AdminDomainCIM_ManagedElement
descriptionCIM_AuthorizedPrivilegeCIM_ManagedElement
descriptionCIM_CollectionCIM_ManagedElement
descriptionCIM_ComputerSystemCIM_ManagedElement
descriptionCIM_ConcreteCollectionCIM_ManagedElement
descriptionCIM_EnabledLogicalElementCIM_ManagedElement
descriptionCIM_GroupCIM_ManagedElement
descriptionCIM_LogCIM_ManagedElement
descriptionCIM_LogicalDeviceCIM_ManagedElement
descriptionCIM_LogicalElementCIM_ManagedElement
descriptionCIM_LogRecordCIM_ManagedElement
descriptionCIM_ManagedSystemElementCIM_ManagedElement
descriptionCIM_NumericSensorCIM_ManagedElement
descriptionCIM_PrivilegeCIM_ManagedElement
descriptionCIM_RecordLogCIM_ManagedElement
descriptionCIM_RegisteredProfileCIM_ManagedElement
descriptionCIM_SensorCIM_ManagedElement
descriptionCIM_SystemCIM_ManagedElement
descriptionCIM_SystemSpecificCollectionCIM_ManagedElement
descriptionComputerSystemCIM_ManagedElement
descriptionConcreteCollectionCIM_ManagedElement
descriptionLogRecordCIM_ManagedElement
descriptionNumericSensorCIM_ManagedElement
descriptionPrivilegeGroupCIM_ManagedElement
descriptionRecordLogCIM_ManagedElement
descriptionRegisteredProfileCIM_ManagedElement
descriptionSensorCIM_ManagedElement
descriptionSystemSpecificCollectionCIM_ManagedElement

Code samples for description property

Get instance of WMI class using GetObject, description property of AdminDomain

Short VBS code - get a single specified instance of AdminDomain 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\Hardware:" + _
 "AdminDomain.CreationClassName=""AdminDomain"",Name=""Management Access Point (MAP) Addressing Root""")
Wscript.Echo wmiObject.description 'or other property name, see properties
See more VBS samples of AdminDomain class

WMI query - sample windows WQL with C#, description property of AdminDomain

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

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM AdminDomain Where CreationClassName=\"AdminDomain\"Name=\"Management Access Point (MAP) Addressing Root\"");

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

WMI query - sample windows WQL with VB.Net, description property of AdminDomain

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

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM AdminDomain Where CreationClassName="AdminDomain"Name="Management Access Point (MAP) Addressing Root"")

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