DS_url - property in ROOT\directory\LDAP namespace

DS_url in other namespaces

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

propertyClassOrigin
DS_urlds_topds_top

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

propertyClassOrigin
DS_urlads_accountds_top
DS_urlads_acspolicyds_top
DS_urlads_acsresourcelimitsds_top
DS_urlads_acssubnetds_top
DS_urlads_addressbookcontainerds_top
DS_urlads_addresstemplateds_top
DS_urlads_applicationentityds_top
DS_urlads_applicationprocessds_top
DS_urlads_applicationversionds_top
DS_urlads_attributeschemads_top
DS_urlads_builtindomainds_top
DS_urlads_categoryregistrationds_top
DS_urlads_certificationauthorityds_top
DS_urlads_classregistrationds_top
DS_urlads_classschemads_top
DS_urlads_classstoreds_top
DS_urlads_comconnectionpointds_top
DS_urlads_computerds_top
DS_urlads_configurationds_top
DS_urlads_contactds_top
DS_urlads_containerds_top
DS_urlads_controlaccessrightds_top
DS_urlads_countryds_top
DS_urlads_crldistributionpointds_top
DS_urlads_crossrefds_top
DS_urlads_crossrefcontainerds_top
DS_urlads_deviceds_top
DS_urlads_dfsconfigurationds_top
DS_urlads_dhcpclassds_top
DS_urlads_displayspecifierds_top
DS_urlads_displaytemplateds_top
DS_urlads_dmdds_top
DS_urlads_dnsnodeds_top
DS_urlads_dnszoneds_top
DS_urlads_documentds_top
DS_urlads_documentseriesds_top
DS_urlads_domaindnsds_top
DS_urlads_domainpolicyds_top
DS_urlads_dsads_top
DS_urlads_dsuisettingsds_top
DS_urlads_filelinktrackingds_top
DS_urlads_filelinktrackingentryds_top
DS_urlads_foreignsecurityprincipalds_top
DS_urlads_friendlycountryds_top
DS_urlads_ftdfsds_top
DS_urlads_groupds_top
DS_urlads_groupofnamesds_top
DS_urlads_groupofuniquenamesds_top
DS_urlads_grouppolicycontainerds_top
DS_urlads_indexservercatalogds_top
DS_urlads_inetorgpersonds_top
DS_urlads_infrastructureupdateds_top
DS_urlads_intellimirrorgroupds_top
DS_urlads_intellimirrorscpds_top
DS_urlads_intersitetransportds_top
DS_urlads_intersitetransportcontainerds_top
DS_urlads_ipnetworkds_top
DS_urlads_ipprotocolds_top
DS_urlads_ipsecfilterds_top
DS_urlads_ipsecisakmppolicyds_top
DS_urlads_ipsecnegotiationpolicyds_top
DS_urlads_ipsecnfads_top
DS_urlads_ipsecpolicyds_top
DS_urlads_ipserviceds_top
DS_urlads_licensingsitesettingsds_top
DS_urlads_linktrackobjectmovetableds_top
DS_urlads_linktrackomtentryds_top
DS_urlads_linktrackvolentryds_top
DS_urlads_linktrackvolumetableds_top
DS_urlads_localityds_top
DS_urlads_lostandfoundds_top
DS_urlads_meetingds_top
DS_urlads_ms_net_ieee_80211_grouppolicyds_top
DS_urlads_ms_net_ieee_8023_grouppolicyds_top
DS_urlads_ms_sql_olapcubeds_top
DS_urlads_ms_sql_olapdatabaseds_top
DS_urlads_ms_sql_olapserverds_top
DS_urlads_ms_sql_sqldatabaseds_top
DS_urlads_ms_sql_sqlpublicationds_top
DS_urlads_ms_sql_sqlrepositoryds_top
DS_urlads_ms_sql_sqlserverds_top
DS_urlads_msauthz_centralaccesspoliciesds_top
DS_urlads_msauthz_centralaccesspolicyds_top
DS_urlads_msauthz_centralaccessruleds_top
DS_urlads_msauthz_centralaccessrulesds_top
DS_urlads_mscom_partitionds_top
DS_urlads_mscom_partitionsetds_top
DS_urlads_msdfs_deletedlinkv2ds_top
DS_urlads_msdfs_linkv2ds_top
DS_urlads_msdfs_namespaceanchords_top
DS_urlads_msdfs_namespacev2ds_top
DS_urlads_msdfsr_connectionds_top
DS_urlads_msdfsr_contentds_top
DS_urlads_msdfsr_contentsetds_top
DS_urlads_msdfsr_globalsettingsds_top
DS_urlads_msdfsr_localsettingsds_top
DS_urlads_msdfsr_memberds_top
DS_urlads_msdfsr_replicationgroupds_top
DS_urlads_msdfsr_subscriberds_top
DS_urlads_msdfsr_subscriptionds_top
DS_urlads_msdfsr_topologyds_top
DS_urlads_msdns_serversettingsds_top
DS_urlads_msds_app_configurationds_top
DS_urlads_msds_appdatads_top
DS_urlads_msds_authnpoliciesds_top
DS_urlads_msds_authnpolicyds_top
DS_urlads_msds_authnpolicysilods_top
DS_urlads_msds_authnpolicysilosds_top
DS_urlads_msds_azadminmanagerds_top
DS_urlads_msds_azapplicationds_top
DS_urlads_msds_azoperationds_top
DS_urlads_msds_azroleds_top
DS_urlads_msds_azscopeds_top
DS_urlads_msds_aztaskds_top
DS_urlads_msds_claimstransformationpoliciesds_top
DS_urlads_msds_claimstransformationpolicytypeds_top
DS_urlads_msds_claimtypeds_top
DS_urlads_msds_claimtypesds_top
DS_urlads_msds_deviceds_top
DS_urlads_msds_devicecontainerds_top
DS_urlads_msds_deviceregistrationserviceds_top
DS_urlads_msds_deviceregistrationservicecontainerds_top
DS_urlads_msds_groupmanagedserviceaccountds_top
DS_urlads_msds_managedserviceaccountds_top
DS_urlads_msds_optionalfeatureds_top
DS_urlads_msds_passwordsettingsds_top
DS_urlads_msds_passwordsettingscontainerds_top
DS_urlads_msds_quotacontainerds_top
DS_urlads_msds_quotacontrolds_top
DS_urlads_msds_resourcepropertiesds_top
DS_urlads_msds_resourcepropertyds_top
DS_urlads_msds_resourcepropertylistds_top
DS_urlads_msds_valuetypeds_top
DS_urlads_msexchconfigurationcontainerds_top
DS_urlads_msfve_recoveryinformationds_top
DS_urlads_msieee80211_policyds_top
DS_urlads_msimaging_postscanprocessds_top
DS_urlads_msimaging_pspsds_top
DS_urlads_mskds_provrootkeyds_top
DS_urlads_mskds_provserverconfigurationds_top
DS_urlads_msmq_custom_recipientds_top
DS_urlads_msmq_groupds_top
DS_urlads_msmqconfigurationds_top
DS_urlads_msmqenterprisesettingsds_top
DS_urlads_msmqmigrateduserds_top
DS_urlads_msmqqueueds_top
DS_urlads_msmqsettingsds_top
DS_urlads_msmqsitelinkds_top
DS_urlads_mspki_enterprise_oidds_top
DS_urlads_mspki_key_recovery_agentds_top
DS_urlads_mspki_privatekeyrecoveryagentds_top
DS_urlads_msprint_connectionpolicyds_top
DS_urlads_mssfu30domaininfods_top
DS_urlads_mssfu30mailaliasesds_top
DS_urlads_mssfu30netidds_top
DS_urlads_mssfu30networkuserds_top
DS_urlads_mssfu30nismapconfigds_top
DS_urlads_msspp_activationobjectds_top
DS_urlads_msspp_activationobjectscontainerds_top
DS_urlads_mstapi_rtconferenceds_top
DS_urlads_mstapi_rtpersonds_top
DS_urlads_mstpm_informationobjectds_top
DS_urlads_mstpm_informationobjectscontainerds_top
DS_urlads_mswmi_intrangeparamds_top
DS_urlads_mswmi_intsetparamds_top
DS_urlads_mswmi_mergeablepolicytemplateds_top
DS_urlads_mswmi_objectencodingds_top
DS_urlads_mswmi_policytemplateds_top
DS_urlads_mswmi_policytypeds_top
DS_urlads_mswmi_rangeparamds_top
DS_urlads_mswmi_realrangeparamds_top
DS_urlads_mswmi_ruleds_top
DS_urlads_mswmi_shadowobjectds_top
DS_urlads_mswmi_simplepolicytemplateds_top
DS_urlads_mswmi_somds_top
DS_urlads_mswmi_stringsetparamds_top
DS_urlads_mswmi_uintrangeparamds_top
DS_urlads_mswmi_uintsetparamds_top
DS_urlads_mswmi_unknownrangeparamds_top
DS_urlads_mswmi_wmigpods_top
DS_urlads_nismapds_top
DS_urlads_nisnetgroupds_top
DS_urlads_nisobjectds_top
DS_urlads_ntdsconnectionds_top
DS_urlads_ntdsdsads_top
DS_urlads_ntdsdsarods_top
DS_urlads_ntdsserviceds_top
DS_urlads_ntdssitesettingsds_top
DS_urlads_ntfrsmemberds_top
DS_urlads_ntfrsreplicasetds_top
DS_urlads_ntfrssettingsds_top
DS_urlads_ntfrssubscriberds_top
DS_urlads_ntfrssubscriptionsds_top
DS_urlads_oncrpcds_top
DS_urlads_organizationds_top
DS_urlads_organizationalpersonds_top
DS_urlads_organizationalroleds_top
DS_urlads_organizationalunitds_top
DS_urlads_packageregistrationds_top
DS_urlads_personds_top
DS_urlads_physicallocationds_top
DS_urlads_pkicertificatetemplateds_top
DS_urlads_pkienrollmentserviceds_top
DS_urlads_printqueueds_top
DS_urlads_querypolicyds_top
DS_urlads_remotemailrecipientds_top
DS_urlads_remotestorageservicepointds_top
DS_urlads_residentialpersonds_top
DS_urlads_rfc822localpartds_top
DS_urlads_ridmanagerds_top
DS_urlads_ridsetds_top
DS_urlads_roomds_top
DS_urlads_rpccontainerds_top
DS_urlads_rpcgroupds_top
DS_urlads_rpcprofileds_top
DS_urlads_rpcprofileelementds_top
DS_urlads_rpcserverds_top
DS_urlads_rpcserverelementds_top
DS_urlads_rrasadministrationconnectionpointds_top
DS_urlads_rrasadministrationdictionaryds_top
DS_urlads_samserverds_top
DS_urlads_secretds_top
DS_urlads_serverds_top
DS_urlads_serverscontainerds_top
DS_urlads_serviceadministrationpointds_top
DS_urlads_serviceclassds_top
DS_urlads_serviceconnectionpointds_top
DS_urlads_serviceinstanceds_top
DS_urlads_siteds_top
DS_urlads_sitelinkds_top
DS_urlads_sitelinkbridgeds_top
DS_urlads_sitescontainerds_top
DS_urlads_storageds_top
DS_urlads_subnetds_top
DS_urlads_subnetcontainerds_top
DS_urlads_subschemads_top
DS_urlads_trusteddomainds_top
DS_urlads_typelibraryds_top
DS_urlads_userds_top
DS_urlads_volumeds_top
DS_urlds_accountds_top
DS_urlds_acspolicyds_top
DS_urlds_acsresourcelimitsds_top
DS_urlds_acssubnetds_top
DS_urlds_addressbookcontainerds_top
DS_urlds_addresstemplateds_top
DS_urlds_applicationentityds_top
DS_urlds_applicationprocessds_top
DS_urlds_applicationsettingsds_top
DS_urlds_applicationsitesettingsds_top
DS_urlds_applicationversionds_top
DS_urlds_attributeschemads_top
DS_urlds_bootabledeviceds_top
DS_urlds_builtindomainds_top
DS_urlds_categoryregistrationds_top
DS_urlds_certificationauthorityds_top
DS_urlds_classregistrationds_top
DS_urlds_classschemads_top
DS_urlds_classstoreds_top
DS_urlds_comconnectionpointds_top
DS_urlds_computerds_top
DS_urlds_configurationds_top
DS_urlds_connectionpointds_top
DS_urlds_contactds_top
DS_urlds_containerds_top
DS_urlds_controlaccessrightds_top
DS_urlds_countryds_top
DS_urlds_crldistributionpointds_top
DS_urlds_crossrefds_top
DS_urlds_crossrefcontainerds_top
DS_urlds_deviceds_top
DS_urlds_dfsconfigurationds_top
DS_urlds_dhcpclassds_top
DS_urlds_displayspecifierds_top
DS_urlds_displaytemplateds_top
DS_urlds_dmdds_top
DS_urlds_dnsnodeds_top
DS_urlds_dnszoneds_top
DS_urlds_documentds_top
DS_urlds_documentseriesds_top
DS_urlds_domainds_top
DS_urlds_domaindnsds_top
DS_urlds_domainpolicyds_top
DS_urlds_domainrelatedobjectds_top
DS_urlds_dsads_top
DS_urlds_dsuisettingsds_top
DS_urlds_dynamicobjectds_top
DS_urlds_filelinktrackingds_top
DS_urlds_filelinktrackingentryds_top
DS_urlds_foreignsecurityprincipalds_top
DS_urlds_friendlycountryds_top
DS_urlds_ftdfsds_top
DS_urlds_groupds_top
DS_urlds_groupofnamesds_top
DS_urlds_groupofuniquenamesds_top
DS_urlds_grouppolicycontainerds_top
DS_urlds_ieee802deviceds_top
DS_urlds_indexservercatalogds_top
DS_urlds_inetorgpersonds_top
DS_urlds_infrastructureupdateds_top
DS_urlds_intellimirrorgroupds_top
DS_urlds_intellimirrorscpds_top
DS_urlds_intersitetransportds_top
DS_urlds_intersitetransportcontainerds_top
DS_urlds_iphostds_top
DS_urlds_ipnetworkds_top
DS_urlds_ipprotocolds_top
DS_urlds_ipsecbaseds_top
DS_urlds_ipsecfilterds_top
DS_urlds_ipsecisakmppolicyds_top
DS_urlds_ipsecnegotiationpolicyds_top
DS_urlds_ipsecnfads_top
DS_urlds_ipsecpolicyds_top
DS_urlds_ipserviceds_top
DS_urlds_leafds_top
DS_urlds_licensingsitesettingsds_top
DS_urlds_linktrackobjectmovetableds_top
DS_urlds_linktrackomtentryds_top
DS_urlds_linktrackvolentryds_top
DS_urlds_linktrackvolumetableds_top
DS_urlds_localityds_top
DS_urlds_lostandfoundds_top
DS_urlds_mailrecipientds_top
DS_urlds_meetingds_top
DS_urlds_ms_net_ieee_80211_grouppolicyds_top
DS_urlds_ms_net_ieee_8023_grouppolicyds_top
DS_urlds_ms_sql_olapcubeds_top
DS_urlds_ms_sql_olapdatabaseds_top
DS_urlds_ms_sql_olapserverds_top
DS_urlds_ms_sql_sqldatabaseds_top
DS_urlds_ms_sql_sqlpublicationds_top
DS_urlds_ms_sql_sqlrepositoryds_top
DS_urlds_ms_sql_sqlserverds_top
DS_urlds_msauthz_centralaccesspoliciesds_top
DS_urlds_msauthz_centralaccesspolicyds_top
DS_urlds_msauthz_centralaccessruleds_top
DS_urlds_msauthz_centralaccessrulesds_top
DS_urlds_mscom_partitionds_top
DS_urlds_mscom_partitionsetds_top
DS_urlds_msdfs_deletedlinkv2ds_top
DS_urlds_msdfs_linkv2ds_top
DS_urlds_msdfs_namespaceanchords_top
DS_urlds_msdfs_namespacev2ds_top
DS_urlds_msdfsr_connectionds_top
DS_urlds_msdfsr_contentds_top
DS_urlds_msdfsr_contentsetds_top
DS_urlds_msdfsr_globalsettingsds_top
DS_urlds_msdfsr_localsettingsds_top
DS_urlds_msdfsr_memberds_top
DS_urlds_msdfsr_replicationgroupds_top
DS_urlds_msdfsr_subscriberds_top
DS_urlds_msdfsr_subscriptionds_top
DS_urlds_msdfsr_topologyds_top
DS_urlds_msdns_serversettingsds_top
DS_urlds_msds_app_configurationds_top
DS_urlds_msds_appdatads_top
DS_urlds_msds_authnpoliciesds_top
DS_urlds_msds_authnpolicyds_top
DS_urlds_msds_authnpolicysilods_top
DS_urlds_msds_authnpolicysilosds_top
DS_urlds_msds_azadminmanagerds_top
DS_urlds_msds_azapplicationds_top
DS_urlds_msds_azoperationds_top
DS_urlds_msds_azroleds_top
DS_urlds_msds_azscopeds_top
DS_urlds_msds_aztaskds_top
DS_urlds_msds_claimstransformationpoliciesds_top
DS_urlds_msds_claimstransformationpolicytypeds_top
DS_urlds_msds_claimtypeds_top
DS_urlds_msds_claimtypepropertybaseds_top
DS_urlds_msds_claimtypesds_top
DS_urlds_msds_cloudextensionsds_top
DS_urlds_msds_deviceds_top
DS_urlds_msds_devicecontainerds_top
DS_urlds_msds_deviceregistrationserviceds_top
DS_urlds_msds_deviceregistrationservicecontainerds_top
DS_urlds_msds_groupmanagedserviceaccountds_top
DS_urlds_msds_managedserviceaccountds_top
DS_urlds_msds_optionalfeatureds_top
DS_urlds_msds_passwordsettingsds_top
DS_urlds_msds_passwordsettingscontainerds_top
DS_urlds_msds_quotacontainerds_top
DS_urlds_msds_quotacontrolds_top
DS_urlds_msds_resourcepropertiesds_top
DS_urlds_msds_resourcepropertyds_top
DS_urlds_msds_resourcepropertylistds_top
DS_urlds_msds_valuetypeds_top
DS_urlds_msexchconfigurationcontainerds_top
DS_urlds_msfve_recoveryinformationds_top
DS_urlds_msieee80211_policyds_top
DS_urlds_msimaging_postscanprocessds_top
DS_urlds_msimaging_pspsds_top
DS_urlds_mskds_provrootkeyds_top
DS_urlds_mskds_provserverconfigurationds_top
DS_urlds_msmq_custom_recipientds_top
DS_urlds_msmq_groupds_top
DS_urlds_msmqconfigurationds_top
DS_urlds_msmqenterprisesettingsds_top
DS_urlds_msmqmigrateduserds_top
DS_urlds_msmqqueueds_top
DS_urlds_msmqsettingsds_top
DS_urlds_msmqsitelinkds_top
DS_urlds_mspki_enterprise_oidds_top
DS_urlds_mspki_key_recovery_agentds_top
DS_urlds_mspki_privatekeyrecoveryagentds_top
DS_urlds_msprint_connectionpolicyds_top
DS_urlds_mssfu30domaininfods_top
DS_urlds_mssfu30mailaliasesds_top
DS_urlds_mssfu30netidds_top
DS_urlds_mssfu30networkuserds_top
DS_urlds_mssfu30nismapconfigds_top
DS_urlds_msspp_activationobjectds_top
DS_urlds_msspp_activationobjectscontainerds_top
DS_urlds_mstapi_rtconferenceds_top
DS_urlds_mstapi_rtpersonds_top
DS_urlds_mstpm_informationobjectds_top
DS_urlds_mstpm_informationobjectscontainerds_top
DS_urlds_mswmi_intrangeparamds_top
DS_urlds_mswmi_intsetparamds_top
DS_urlds_mswmi_mergeablepolicytemplateds_top
DS_urlds_mswmi_objectencodingds_top
DS_urlds_mswmi_policytemplateds_top
DS_urlds_mswmi_policytypeds_top
DS_urlds_mswmi_rangeparamds_top
DS_urlds_mswmi_realrangeparamds_top
DS_urlds_mswmi_ruleds_top
DS_urlds_mswmi_shadowobjectds_top
DS_urlds_mswmi_simplepolicytemplateds_top
DS_urlds_mswmi_somds_top
DS_urlds_mswmi_stringsetparamds_top
DS_urlds_mswmi_uintrangeparamds_top
DS_urlds_mswmi_uintsetparamds_top
DS_urlds_mswmi_unknownrangeparamds_top
DS_urlds_mswmi_wmigpods_top
DS_urlds_nismapds_top
DS_urlds_nisnetgroupds_top
DS_urlds_nisobjectds_top
DS_urlds_ntdsconnectionds_top
DS_urlds_ntdsdsads_top
DS_urlds_ntdsdsarods_top
DS_urlds_ntdsserviceds_top
DS_urlds_ntdssitesettingsds_top
DS_urlds_ntfrsmemberds_top
DS_urlds_ntfrsreplicasetds_top
DS_urlds_ntfrssettingsds_top
DS_urlds_ntfrssubscriberds_top
DS_urlds_ntfrssubscriptionsds_top
DS_urlds_oncrpcds_top
DS_urlds_organizationds_top
DS_urlds_organizationalpersonds_top
DS_urlds_organizationalroleds_top
DS_urlds_organizationalunitds_top
DS_urlds_packageregistrationds_top
DS_urlds_personds_top
DS_urlds_physicallocationds_top
DS_urlds_pkicertificatetemplateds_top
DS_urlds_pkienrollmentserviceds_top
DS_urlds_posixaccountds_top
DS_urlds_posixgroupds_top
DS_urlds_printqueueds_top
DS_urlds_querypolicyds_top
DS_urlds_remotemailrecipientds_top
DS_urlds_remotestorageservicepointds_top
DS_urlds_residentialpersonds_top
DS_urlds_rfc822localpartds_top
DS_urlds_ridmanagerds_top
DS_urlds_ridsetds_top
DS_urlds_roomds_top
DS_urlds_rpccontainerds_top
DS_urlds_rpcentryds_top
DS_urlds_rpcgroupds_top
DS_urlds_rpcprofileds_top
DS_urlds_rpcprofileelementds_top
DS_urlds_rpcserverds_top
DS_urlds_rpcserverelementds_top
DS_urlds_rrasadministrationconnectionpointds_top
DS_urlds_rrasadministrationdictionaryds_top
DS_urlds_samdomainds_top
DS_urlds_samdomainbaseds_top
DS_urlds_samserverds_top
DS_urlds_secretds_top
DS_urlds_securityobjectds_top
DS_urlds_securityprincipalds_top
DS_urlds_serverds_top
DS_urlds_serverscontainerds_top
DS_urlds_serviceadministrationpointds_top
DS_urlds_serviceclassds_top
DS_urlds_serviceconnectionpointds_top
DS_urlds_serviceinstanceds_top
DS_urlds_shadowaccountds_top
DS_urlds_simplesecurityobjectds_top
DS_urlds_siteds_top
DS_urlds_sitelinkds_top
DS_urlds_sitelinkbridgeds_top
DS_urlds_sitescontainerds_top
DS_urlds_storageds_top
DS_urlds_subnetds_top
DS_urlds_subnetcontainerds_top
DS_urlds_subschemads_top
DS_urlds_trusteddomainds_top
DS_urlds_typelibraryds_top
DS_urlds_userds_top
DS_urlds_volumeds_top

Code samples for DS_url property

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

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

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