DS_name - property in ROOT\directory\LDAP namespace

DS_name in other namespaces

List of classes with DS_name local property in ROOT\directory\LDAP namespace

propertyClassOrigin
DS_nameds_topds_top

List of classes with DS_name derived property in ROOT\directory\LDAP namespace

propertyClassOrigin
DS_nameads_accountds_top
DS_nameads_acspolicyds_top
DS_nameads_acsresourcelimitsds_top
DS_nameads_acssubnetds_top
DS_nameads_addressbookcontainerds_top
DS_nameads_addresstemplateds_top
DS_nameads_applicationentityds_top
DS_nameads_applicationprocessds_top
DS_nameads_applicationversionds_top
DS_nameads_attributeschemads_top
DS_nameads_builtindomainds_top
DS_nameads_categoryregistrationds_top
DS_nameads_certificationauthorityds_top
DS_nameads_classregistrationds_top
DS_nameads_classschemads_top
DS_nameads_classstoreds_top
DS_nameads_comconnectionpointds_top
DS_nameads_computerds_top
DS_nameads_configurationds_top
DS_nameads_contactds_top
DS_nameads_containerds_top
DS_nameads_controlaccessrightds_top
DS_nameads_countryds_top
DS_nameads_crldistributionpointds_top
DS_nameads_crossrefds_top
DS_nameads_crossrefcontainerds_top
DS_nameads_deviceds_top
DS_nameads_dfsconfigurationds_top
DS_nameads_dhcpclassds_top
DS_nameads_displayspecifierds_top
DS_nameads_displaytemplateds_top
DS_nameads_dmdds_top
DS_nameads_dnsnodeds_top
DS_nameads_dnszoneds_top
DS_nameads_documentds_top
DS_nameads_documentseriesds_top
DS_nameads_domaindnsds_top
DS_nameads_domainpolicyds_top
DS_nameads_dsads_top
DS_nameads_dsuisettingsds_top
DS_nameads_filelinktrackingds_top
DS_nameads_filelinktrackingentryds_top
DS_nameads_foreignsecurityprincipalds_top
DS_nameads_friendlycountryds_top
DS_nameads_ftdfsds_top
DS_nameads_groupds_top
DS_nameads_groupofnamesds_top
DS_nameads_groupofuniquenamesds_top
DS_nameads_grouppolicycontainerds_top
DS_nameads_indexservercatalogds_top
DS_nameads_inetorgpersonds_top
DS_nameads_infrastructureupdateds_top
DS_nameads_intellimirrorgroupds_top
DS_nameads_intellimirrorscpds_top
DS_nameads_intersitetransportds_top
DS_nameads_intersitetransportcontainerds_top
DS_nameads_ipnetworkds_top
DS_nameads_ipprotocolds_top
DS_nameads_ipsecfilterds_top
DS_nameads_ipsecisakmppolicyds_top
DS_nameads_ipsecnegotiationpolicyds_top
DS_nameads_ipsecnfads_top
DS_nameads_ipsecpolicyds_top
DS_nameads_ipserviceds_top
DS_nameads_licensingsitesettingsds_top
DS_nameads_linktrackobjectmovetableds_top
DS_nameads_linktrackomtentryds_top
DS_nameads_linktrackvolentryds_top
DS_nameads_linktrackvolumetableds_top
DS_nameads_localityds_top
DS_nameads_lostandfoundds_top
DS_nameads_meetingds_top
DS_nameads_ms_net_ieee_80211_grouppolicyds_top
DS_nameads_ms_net_ieee_8023_grouppolicyds_top
DS_nameads_ms_sql_olapcubeds_top
DS_nameads_ms_sql_olapdatabaseds_top
DS_nameads_ms_sql_olapserverds_top
DS_nameads_ms_sql_sqldatabaseds_top
DS_nameads_ms_sql_sqlpublicationds_top
DS_nameads_ms_sql_sqlrepositoryds_top
DS_nameads_ms_sql_sqlserverds_top
DS_nameads_msauthz_centralaccesspoliciesds_top
DS_nameads_msauthz_centralaccesspolicyds_top
DS_nameads_msauthz_centralaccessruleds_top
DS_nameads_msauthz_centralaccessrulesds_top
DS_nameads_mscom_partitionds_top
DS_nameads_mscom_partitionsetds_top
DS_nameads_msdfs_deletedlinkv2ds_top
DS_nameads_msdfs_linkv2ds_top
DS_nameads_msdfs_namespaceanchords_top
DS_nameads_msdfs_namespacev2ds_top
DS_nameads_msdfsr_connectionds_top
DS_nameads_msdfsr_contentds_top
DS_nameads_msdfsr_contentsetds_top
DS_nameads_msdfsr_globalsettingsds_top
DS_nameads_msdfsr_localsettingsds_top
DS_nameads_msdfsr_memberds_top
DS_nameads_msdfsr_replicationgroupds_top
DS_nameads_msdfsr_subscriberds_top
DS_nameads_msdfsr_subscriptionds_top
DS_nameads_msdfsr_topologyds_top
DS_nameads_msdns_serversettingsds_top
DS_nameads_msds_app_configurationds_top
DS_nameads_msds_appdatads_top
DS_nameads_msds_authnpoliciesds_top
DS_nameads_msds_authnpolicyds_top
DS_nameads_msds_authnpolicysilods_top
DS_nameads_msds_authnpolicysilosds_top
DS_nameads_msds_azadminmanagerds_top
DS_nameads_msds_azapplicationds_top
DS_nameads_msds_azoperationds_top
DS_nameads_msds_azroleds_top
DS_nameads_msds_azscopeds_top
DS_nameads_msds_aztaskds_top
DS_nameads_msds_claimstransformationpoliciesds_top
DS_nameads_msds_claimstransformationpolicytypeds_top
DS_nameads_msds_claimtypeds_top
DS_nameads_msds_claimtypesds_top
DS_nameads_msds_deviceds_top
DS_nameads_msds_devicecontainerds_top
DS_nameads_msds_deviceregistrationserviceds_top
DS_nameads_msds_deviceregistrationservicecontainerds_top
DS_nameads_msds_groupmanagedserviceaccountds_top
DS_nameads_msds_managedserviceaccountds_top
DS_nameads_msds_optionalfeatureds_top
DS_nameads_msds_passwordsettingsds_top
DS_nameads_msds_passwordsettingscontainerds_top
DS_nameads_msds_quotacontainerds_top
DS_nameads_msds_quotacontrolds_top
DS_nameads_msds_resourcepropertiesds_top
DS_nameads_msds_resourcepropertyds_top
DS_nameads_msds_resourcepropertylistds_top
DS_nameads_msds_valuetypeds_top
DS_nameads_msexchconfigurationcontainerds_top
DS_nameads_msfve_recoveryinformationds_top
DS_nameads_msieee80211_policyds_top
DS_nameads_msimaging_postscanprocessds_top
DS_nameads_msimaging_pspsds_top
DS_nameads_mskds_provrootkeyds_top
DS_nameads_mskds_provserverconfigurationds_top
DS_nameads_msmq_custom_recipientds_top
DS_nameads_msmq_groupds_top
DS_nameads_msmqconfigurationds_top
DS_nameads_msmqenterprisesettingsds_top
DS_nameads_msmqmigrateduserds_top
DS_nameads_msmqqueueds_top
DS_nameads_msmqsettingsds_top
DS_nameads_msmqsitelinkds_top
DS_nameads_mspki_enterprise_oidds_top
DS_nameads_mspki_key_recovery_agentds_top
DS_nameads_mspki_privatekeyrecoveryagentds_top
DS_nameads_msprint_connectionpolicyds_top
DS_nameads_mssfu30domaininfods_top
DS_nameads_mssfu30mailaliasesds_top
DS_nameads_mssfu30netidds_top
DS_nameads_mssfu30networkuserds_top
DS_nameads_mssfu30nismapconfigds_top
DS_nameads_msspp_activationobjectds_top
DS_nameads_msspp_activationobjectscontainerds_top
DS_nameads_mstapi_rtconferenceds_top
DS_nameads_mstapi_rtpersonds_top
DS_nameads_mstpm_informationobjectds_top
DS_nameads_mstpm_informationobjectscontainerds_top
DS_nameads_mswmi_intrangeparamds_top
DS_nameads_mswmi_intsetparamds_top
DS_nameads_mswmi_mergeablepolicytemplateds_top
DS_nameads_mswmi_objectencodingds_top
DS_nameads_mswmi_policytemplateds_top
DS_nameads_mswmi_policytypeds_top
DS_nameads_mswmi_rangeparamds_top
DS_nameads_mswmi_realrangeparamds_top
DS_nameads_mswmi_ruleds_top
DS_nameads_mswmi_shadowobjectds_top
DS_nameads_mswmi_simplepolicytemplateds_top
DS_nameads_mswmi_somds_top
DS_nameads_mswmi_stringsetparamds_top
DS_nameads_mswmi_uintrangeparamds_top
DS_nameads_mswmi_uintsetparamds_top
DS_nameads_mswmi_unknownrangeparamds_top
DS_nameads_mswmi_wmigpods_top
DS_nameads_nismapds_top
DS_nameads_nisnetgroupds_top
DS_nameads_nisobjectds_top
DS_nameads_ntdsconnectionds_top
DS_nameads_ntdsdsads_top
DS_nameads_ntdsdsarods_top
DS_nameads_ntdsserviceds_top
DS_nameads_ntdssitesettingsds_top
DS_nameads_ntfrsmemberds_top
DS_nameads_ntfrsreplicasetds_top
DS_nameads_ntfrssettingsds_top
DS_nameads_ntfrssubscriberds_top
DS_nameads_ntfrssubscriptionsds_top
DS_nameads_oncrpcds_top
DS_nameads_organizationds_top
DS_nameads_organizationalpersonds_top
DS_nameads_organizationalroleds_top
DS_nameads_organizationalunitds_top
DS_nameads_packageregistrationds_top
DS_nameads_personds_top
DS_nameads_physicallocationds_top
DS_nameads_pkicertificatetemplateds_top
DS_nameads_pkienrollmentserviceds_top
DS_nameads_printqueueds_top
DS_nameads_querypolicyds_top
DS_nameads_remotemailrecipientds_top
DS_nameads_remotestorageservicepointds_top
DS_nameads_residentialpersonds_top
DS_nameads_rfc822localpartds_top
DS_nameads_ridmanagerds_top
DS_nameads_ridsetds_top
DS_nameads_roomds_top
DS_nameads_rpccontainerds_top
DS_nameads_rpcgroupds_top
DS_nameads_rpcprofileds_top
DS_nameads_rpcprofileelementds_top
DS_nameads_rpcserverds_top
DS_nameads_rpcserverelementds_top
DS_nameads_rrasadministrationconnectionpointds_top
DS_nameads_rrasadministrationdictionaryds_top
DS_nameads_samserverds_top
DS_nameads_secretds_top
DS_nameads_serverds_top
DS_nameads_serverscontainerds_top
DS_nameads_serviceadministrationpointds_top
DS_nameads_serviceclassds_top
DS_nameads_serviceconnectionpointds_top
DS_nameads_serviceinstanceds_top
DS_nameads_siteds_top
DS_nameads_sitelinkds_top
DS_nameads_sitelinkbridgeds_top
DS_nameads_sitescontainerds_top
DS_nameads_storageds_top
DS_nameads_subnetds_top
DS_nameads_subnetcontainerds_top
DS_nameads_subschemads_top
DS_nameads_trusteddomainds_top
DS_nameads_typelibraryds_top
DS_nameads_userds_top
DS_nameads_volumeds_top
DS_nameds_accountds_top
DS_nameds_acspolicyds_top
DS_nameds_acsresourcelimitsds_top
DS_nameds_acssubnetds_top
DS_nameds_addressbookcontainerds_top
DS_nameds_addresstemplateds_top
DS_nameds_applicationentityds_top
DS_nameds_applicationprocessds_top
DS_nameds_applicationsettingsds_top
DS_nameds_applicationsitesettingsds_top
DS_nameds_applicationversionds_top
DS_nameds_attributeschemads_top
DS_nameds_bootabledeviceds_top
DS_nameds_builtindomainds_top
DS_nameds_categoryregistrationds_top
DS_nameds_certificationauthorityds_top
DS_nameds_classregistrationds_top
DS_nameds_classschemads_top
DS_nameds_classstoreds_top
DS_nameds_comconnectionpointds_top
DS_nameds_computerds_top
DS_nameds_configurationds_top
DS_nameds_connectionpointds_top
DS_nameds_contactds_top
DS_nameds_containerds_top
DS_nameds_controlaccessrightds_top
DS_nameds_countryds_top
DS_nameds_crldistributionpointds_top
DS_nameds_crossrefds_top
DS_nameds_crossrefcontainerds_top
DS_nameds_deviceds_top
DS_nameds_dfsconfigurationds_top
DS_nameds_dhcpclassds_top
DS_nameds_displayspecifierds_top
DS_nameds_displaytemplateds_top
DS_nameds_dmdds_top
DS_nameds_dnsnodeds_top
DS_nameds_dnszoneds_top
DS_nameds_documentds_top
DS_nameds_documentseriesds_top
DS_nameds_domainds_top
DS_nameds_domaindnsds_top
DS_nameds_domainpolicyds_top
DS_nameds_domainrelatedobjectds_top
DS_nameds_dsads_top
DS_nameds_dsuisettingsds_top
DS_nameds_dynamicobjectds_top
DS_nameds_filelinktrackingds_top
DS_nameds_filelinktrackingentryds_top
DS_nameds_foreignsecurityprincipalds_top
DS_nameds_friendlycountryds_top
DS_nameds_ftdfsds_top
DS_nameds_groupds_top
DS_nameds_groupofnamesds_top
DS_nameds_groupofuniquenamesds_top
DS_nameds_grouppolicycontainerds_top
DS_nameds_ieee802deviceds_top
DS_nameds_indexservercatalogds_top
DS_nameds_inetorgpersonds_top
DS_nameds_infrastructureupdateds_top
DS_nameds_intellimirrorgroupds_top
DS_nameds_intellimirrorscpds_top
DS_nameds_intersitetransportds_top
DS_nameds_intersitetransportcontainerds_top
DS_nameds_iphostds_top
DS_nameds_ipnetworkds_top
DS_nameds_ipprotocolds_top
DS_nameds_ipsecbaseds_top
DS_nameds_ipsecfilterds_top
DS_nameds_ipsecisakmppolicyds_top
DS_nameds_ipsecnegotiationpolicyds_top
DS_nameds_ipsecnfads_top
DS_nameds_ipsecpolicyds_top
DS_nameds_ipserviceds_top
DS_nameds_leafds_top
DS_nameds_licensingsitesettingsds_top
DS_nameds_linktrackobjectmovetableds_top
DS_nameds_linktrackomtentryds_top
DS_nameds_linktrackvolentryds_top
DS_nameds_linktrackvolumetableds_top
DS_nameds_localityds_top
DS_nameds_lostandfoundds_top
DS_nameds_mailrecipientds_top
DS_nameds_meetingds_top
DS_nameds_ms_net_ieee_80211_grouppolicyds_top
DS_nameds_ms_net_ieee_8023_grouppolicyds_top
DS_nameds_ms_sql_olapcubeds_top
DS_nameds_ms_sql_olapdatabaseds_top
DS_nameds_ms_sql_olapserverds_top
DS_nameds_ms_sql_sqldatabaseds_top
DS_nameds_ms_sql_sqlpublicationds_top
DS_nameds_ms_sql_sqlrepositoryds_top
DS_nameds_ms_sql_sqlserverds_top
DS_nameds_msauthz_centralaccesspoliciesds_top
DS_nameds_msauthz_centralaccesspolicyds_top
DS_nameds_msauthz_centralaccessruleds_top
DS_nameds_msauthz_centralaccessrulesds_top
DS_nameds_mscom_partitionds_top
DS_nameds_mscom_partitionsetds_top
DS_nameds_msdfs_deletedlinkv2ds_top
DS_nameds_msdfs_linkv2ds_top
DS_nameds_msdfs_namespaceanchords_top
DS_nameds_msdfs_namespacev2ds_top
DS_nameds_msdfsr_connectionds_top
DS_nameds_msdfsr_contentds_top
DS_nameds_msdfsr_contentsetds_top
DS_nameds_msdfsr_globalsettingsds_top
DS_nameds_msdfsr_localsettingsds_top
DS_nameds_msdfsr_memberds_top
DS_nameds_msdfsr_replicationgroupds_top
DS_nameds_msdfsr_subscriberds_top
DS_nameds_msdfsr_subscriptionds_top
DS_nameds_msdfsr_topologyds_top
DS_nameds_msdns_serversettingsds_top
DS_nameds_msds_app_configurationds_top
DS_nameds_msds_appdatads_top
DS_nameds_msds_authnpoliciesds_top
DS_nameds_msds_authnpolicyds_top
DS_nameds_msds_authnpolicysilods_top
DS_nameds_msds_authnpolicysilosds_top
DS_nameds_msds_azadminmanagerds_top
DS_nameds_msds_azapplicationds_top
DS_nameds_msds_azoperationds_top
DS_nameds_msds_azroleds_top
DS_nameds_msds_azscopeds_top
DS_nameds_msds_aztaskds_top
DS_nameds_msds_claimstransformationpoliciesds_top
DS_nameds_msds_claimstransformationpolicytypeds_top
DS_nameds_msds_claimtypeds_top
DS_nameds_msds_claimtypepropertybaseds_top
DS_nameds_msds_claimtypesds_top
DS_nameds_msds_cloudextensionsds_top
DS_nameds_msds_deviceds_top
DS_nameds_msds_devicecontainerds_top
DS_nameds_msds_deviceregistrationserviceds_top
DS_nameds_msds_deviceregistrationservicecontainerds_top
DS_nameds_msds_groupmanagedserviceaccountds_top
DS_nameds_msds_managedserviceaccountds_top
DS_nameds_msds_optionalfeatureds_top
DS_nameds_msds_passwordsettingsds_top
DS_nameds_msds_passwordsettingscontainerds_top
DS_nameds_msds_quotacontainerds_top
DS_nameds_msds_quotacontrolds_top
DS_nameds_msds_resourcepropertiesds_top
DS_nameds_msds_resourcepropertyds_top
DS_nameds_msds_resourcepropertylistds_top
DS_nameds_msds_valuetypeds_top
DS_nameds_msexchconfigurationcontainerds_top
DS_nameds_msfve_recoveryinformationds_top
DS_nameds_msieee80211_policyds_top
DS_nameds_msimaging_postscanprocessds_top
DS_nameds_msimaging_pspsds_top
DS_nameds_mskds_provrootkeyds_top
DS_nameds_mskds_provserverconfigurationds_top
DS_nameds_msmq_custom_recipientds_top
DS_nameds_msmq_groupds_top
DS_nameds_msmqconfigurationds_top
DS_nameds_msmqenterprisesettingsds_top
DS_nameds_msmqmigrateduserds_top
DS_nameds_msmqqueueds_top
DS_nameds_msmqsettingsds_top
DS_nameds_msmqsitelinkds_top
DS_nameds_mspki_enterprise_oidds_top
DS_nameds_mspki_key_recovery_agentds_top
DS_nameds_mspki_privatekeyrecoveryagentds_top
DS_nameds_msprint_connectionpolicyds_top
DS_nameds_mssfu30domaininfods_top
DS_nameds_mssfu30mailaliasesds_top
DS_nameds_mssfu30netidds_top
DS_nameds_mssfu30networkuserds_top
DS_nameds_mssfu30nismapconfigds_top
DS_nameds_msspp_activationobjectds_top
DS_nameds_msspp_activationobjectscontainerds_top
DS_nameds_mstapi_rtconferenceds_top
DS_nameds_mstapi_rtpersonds_top
DS_nameds_mstpm_informationobjectds_top
DS_nameds_mstpm_informationobjectscontainerds_top
DS_nameds_mswmi_intrangeparamds_top
DS_nameds_mswmi_intsetparamds_top
DS_nameds_mswmi_mergeablepolicytemplateds_top
DS_nameds_mswmi_objectencodingds_top
DS_nameds_mswmi_policytemplateds_top
DS_nameds_mswmi_policytypeds_top
DS_nameds_mswmi_rangeparamds_top
DS_nameds_mswmi_realrangeparamds_top
DS_nameds_mswmi_ruleds_top
DS_nameds_mswmi_shadowobjectds_top
DS_nameds_mswmi_simplepolicytemplateds_top
DS_nameds_mswmi_somds_top
DS_nameds_mswmi_stringsetparamds_top
DS_nameds_mswmi_uintrangeparamds_top
DS_nameds_mswmi_uintsetparamds_top
DS_nameds_mswmi_unknownrangeparamds_top
DS_nameds_mswmi_wmigpods_top
DS_nameds_nismapds_top
DS_nameds_nisnetgroupds_top
DS_nameds_nisobjectds_top
DS_nameds_ntdsconnectionds_top
DS_nameds_ntdsdsads_top
DS_nameds_ntdsdsarods_top
DS_nameds_ntdsserviceds_top
DS_nameds_ntdssitesettingsds_top
DS_nameds_ntfrsmemberds_top
DS_nameds_ntfrsreplicasetds_top
DS_nameds_ntfrssettingsds_top
DS_nameds_ntfrssubscriberds_top
DS_nameds_ntfrssubscriptionsds_top
DS_nameds_oncrpcds_top
DS_nameds_organizationds_top
DS_nameds_organizationalpersonds_top
DS_nameds_organizationalroleds_top
DS_nameds_organizationalunitds_top
DS_nameds_packageregistrationds_top
DS_nameds_personds_top
DS_nameds_physicallocationds_top
DS_nameds_pkicertificatetemplateds_top
DS_nameds_pkienrollmentserviceds_top
DS_nameds_posixaccountds_top
DS_nameds_posixgroupds_top
DS_nameds_printqueueds_top
DS_nameds_querypolicyds_top
DS_nameds_remotemailrecipientds_top
DS_nameds_remotestorageservicepointds_top
DS_nameds_residentialpersonds_top
DS_nameds_rfc822localpartds_top
DS_nameds_ridmanagerds_top
DS_nameds_ridsetds_top
DS_nameds_roomds_top
DS_nameds_rpccontainerds_top
DS_nameds_rpcentryds_top
DS_nameds_rpcgroupds_top
DS_nameds_rpcprofileds_top
DS_nameds_rpcprofileelementds_top
DS_nameds_rpcserverds_top
DS_nameds_rpcserverelementds_top
DS_nameds_rrasadministrationconnectionpointds_top
DS_nameds_rrasadministrationdictionaryds_top
DS_nameds_samdomainds_top
DS_nameds_samdomainbaseds_top
DS_nameds_samserverds_top
DS_nameds_secretds_top
DS_nameds_securityobjectds_top
DS_nameds_securityprincipalds_top
DS_nameds_serverds_top
DS_nameds_serverscontainerds_top
DS_nameds_serviceadministrationpointds_top
DS_nameds_serviceclassds_top
DS_nameds_serviceconnectionpointds_top
DS_nameds_serviceinstanceds_top
DS_nameds_shadowaccountds_top
DS_nameds_simplesecurityobjectds_top
DS_nameds_siteds_top
DS_nameds_sitelinkds_top
DS_nameds_sitelinkbridgeds_top
DS_nameds_sitescontainerds_top
DS_nameds_storageds_top
DS_nameds_subnetds_top
DS_nameds_subnetcontainerds_top
DS_nameds_subschemads_top
DS_nameds_trusteddomainds_top
DS_nameds_typelibraryds_top
DS_nameds_userds_top
DS_nameds_volumeds_top

Code samples for DS_name property

Get instance of WMI class using GetObject, DS_name property of ds_container

Short VBS code - get a single specified instance of ds_container 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\directory\LDAP:" + _
 "ds_container.ADSIPath=""LDAP://CN=Users,DC=rootdomain,DC=com""")
Wscript.Echo wmiObject.DS_name 'or other property name, see properties
See more VBS samples of ds_container class

WMI query - sample windows WQL with C#, DS_name property of ds_container

Get a specified instance of ds_container 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\\directory\\LDAP");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM ds_container Where ADSIPath=\"LDAP://CN=Users,DC=rootdomain,DC=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("DS_name : {0}", m["DS_name"]);
  
}

WMI query - sample windows WQL with VB.Net, DS_name property of ds_container

Get a specified instance of ds_container 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\directory\LDAP")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM ds_container Where ADSIPath="LDAP://CN=Users,DC=rootdomain,DC=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("DS_name : {0}", mObject("DS_name"))
Next
comments powered by Disqus
WUtils.com