DS_flags - property in ROOT\directory\LDAP namespace

DS_flags in other namespaces

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

propertyClassOrigin
DS_flagsds_topds_top

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

propertyClassOrigin
DS_flagsads_accountds_top
DS_flagsads_acspolicyds_top
DS_flagsads_acsresourcelimitsds_top
DS_flagsads_acssubnetds_top
DS_flagsads_addressbookcontainerds_top
DS_flagsads_addresstemplateds_top
DS_flagsads_applicationentityds_top
DS_flagsads_applicationprocessds_top
DS_flagsads_applicationversionds_top
DS_flagsads_attributeschemads_top
DS_flagsads_builtindomainds_top
DS_flagsads_categoryregistrationds_top
DS_flagsads_certificationauthorityds_top
DS_flagsads_classregistrationds_top
DS_flagsads_classschemads_top
DS_flagsads_classstoreds_top
DS_flagsads_comconnectionpointds_top
DS_flagsads_computerds_top
DS_flagsads_configurationds_top
DS_flagsads_contactds_top
DS_flagsads_containerds_top
DS_flagsads_controlaccessrightds_top
DS_flagsads_countryds_top
DS_flagsads_crldistributionpointds_top
DS_flagsads_crossrefds_top
DS_flagsads_crossrefcontainerds_top
DS_flagsads_deviceds_top
DS_flagsads_dfsconfigurationds_top
DS_flagsads_dhcpclassds_top
DS_flagsads_displayspecifierds_top
DS_flagsads_displaytemplateds_top
DS_flagsads_dmdds_top
DS_flagsads_dnsnodeds_top
DS_flagsads_dnszoneds_top
DS_flagsads_documentds_top
DS_flagsads_documentseriesds_top
DS_flagsads_domaindnsds_top
DS_flagsads_domainpolicyds_top
DS_flagsads_dsads_top
DS_flagsads_dsuisettingsds_top
DS_flagsads_filelinktrackingds_top
DS_flagsads_filelinktrackingentryds_top
DS_flagsads_foreignsecurityprincipalds_top
DS_flagsads_friendlycountryds_top
DS_flagsads_ftdfsds_top
DS_flagsads_groupds_top
DS_flagsads_groupofnamesds_top
DS_flagsads_groupofuniquenamesds_top
DS_flagsads_grouppolicycontainerds_top
DS_flagsads_indexservercatalogds_top
DS_flagsads_inetorgpersonds_top
DS_flagsads_infrastructureupdateds_top
DS_flagsads_intellimirrorgroupds_top
DS_flagsads_intellimirrorscpds_top
DS_flagsads_intersitetransportds_top
DS_flagsads_intersitetransportcontainerds_top
DS_flagsads_ipnetworkds_top
DS_flagsads_ipprotocolds_top
DS_flagsads_ipsecfilterds_top
DS_flagsads_ipsecisakmppolicyds_top
DS_flagsads_ipsecnegotiationpolicyds_top
DS_flagsads_ipsecnfads_top
DS_flagsads_ipsecpolicyds_top
DS_flagsads_ipserviceds_top
DS_flagsads_licensingsitesettingsds_top
DS_flagsads_linktrackobjectmovetableds_top
DS_flagsads_linktrackomtentryds_top
DS_flagsads_linktrackvolentryds_top
DS_flagsads_linktrackvolumetableds_top
DS_flagsads_localityds_top
DS_flagsads_lostandfoundds_top
DS_flagsads_meetingds_top
DS_flagsads_ms_net_ieee_80211_grouppolicyds_top
DS_flagsads_ms_net_ieee_8023_grouppolicyds_top
DS_flagsads_ms_sql_olapcubeds_top
DS_flagsads_ms_sql_olapdatabaseds_top
DS_flagsads_ms_sql_olapserverds_top
DS_flagsads_ms_sql_sqldatabaseds_top
DS_flagsads_ms_sql_sqlpublicationds_top
DS_flagsads_ms_sql_sqlrepositoryds_top
DS_flagsads_ms_sql_sqlserverds_top
DS_flagsads_msauthz_centralaccesspoliciesds_top
DS_flagsads_msauthz_centralaccesspolicyds_top
DS_flagsads_msauthz_centralaccessruleds_top
DS_flagsads_msauthz_centralaccessrulesds_top
DS_flagsads_mscom_partitionds_top
DS_flagsads_mscom_partitionsetds_top
DS_flagsads_msdfs_deletedlinkv2ds_top
DS_flagsads_msdfs_linkv2ds_top
DS_flagsads_msdfs_namespaceanchords_top
DS_flagsads_msdfs_namespacev2ds_top
DS_flagsads_msdfsr_connectionds_top
DS_flagsads_msdfsr_contentds_top
DS_flagsads_msdfsr_contentsetds_top
DS_flagsads_msdfsr_globalsettingsds_top
DS_flagsads_msdfsr_localsettingsds_top
DS_flagsads_msdfsr_memberds_top
DS_flagsads_msdfsr_replicationgroupds_top
DS_flagsads_msdfsr_subscriberds_top
DS_flagsads_msdfsr_subscriptionds_top
DS_flagsads_msdfsr_topologyds_top
DS_flagsads_msdns_serversettingsds_top
DS_flagsads_msds_app_configurationds_top
DS_flagsads_msds_appdatads_top
DS_flagsads_msds_authnpoliciesds_top
DS_flagsads_msds_authnpolicyds_top
DS_flagsads_msds_authnpolicysilods_top
DS_flagsads_msds_authnpolicysilosds_top
DS_flagsads_msds_azadminmanagerds_top
DS_flagsads_msds_azapplicationds_top
DS_flagsads_msds_azoperationds_top
DS_flagsads_msds_azroleds_top
DS_flagsads_msds_azscopeds_top
DS_flagsads_msds_aztaskds_top
DS_flagsads_msds_claimstransformationpoliciesds_top
DS_flagsads_msds_claimstransformationpolicytypeds_top
DS_flagsads_msds_claimtypeds_top
DS_flagsads_msds_claimtypesds_top
DS_flagsads_msds_deviceds_top
DS_flagsads_msds_devicecontainerds_top
DS_flagsads_msds_deviceregistrationserviceds_top
DS_flagsads_msds_deviceregistrationservicecontainerds_top
DS_flagsads_msds_groupmanagedserviceaccountds_top
DS_flagsads_msds_managedserviceaccountds_top
DS_flagsads_msds_optionalfeatureds_top
DS_flagsads_msds_passwordsettingsds_top
DS_flagsads_msds_passwordsettingscontainerds_top
DS_flagsads_msds_quotacontainerds_top
DS_flagsads_msds_quotacontrolds_top
DS_flagsads_msds_resourcepropertiesds_top
DS_flagsads_msds_resourcepropertyds_top
DS_flagsads_msds_resourcepropertylistds_top
DS_flagsads_msds_valuetypeds_top
DS_flagsads_msexchconfigurationcontainerds_top
DS_flagsads_msfve_recoveryinformationds_top
DS_flagsads_msieee80211_policyds_top
DS_flagsads_msimaging_postscanprocessds_top
DS_flagsads_msimaging_pspsds_top
DS_flagsads_mskds_provrootkeyds_top
DS_flagsads_mskds_provserverconfigurationds_top
DS_flagsads_msmq_custom_recipientds_top
DS_flagsads_msmq_groupds_top
DS_flagsads_msmqconfigurationds_top
DS_flagsads_msmqenterprisesettingsds_top
DS_flagsads_msmqmigrateduserds_top
DS_flagsads_msmqqueueds_top
DS_flagsads_msmqsettingsds_top
DS_flagsads_msmqsitelinkds_top
DS_flagsads_mspki_enterprise_oidds_top
DS_flagsads_mspki_key_recovery_agentds_top
DS_flagsads_mspki_privatekeyrecoveryagentds_top
DS_flagsads_msprint_connectionpolicyds_top
DS_flagsads_mssfu30domaininfods_top
DS_flagsads_mssfu30mailaliasesds_top
DS_flagsads_mssfu30netidds_top
DS_flagsads_mssfu30networkuserds_top
DS_flagsads_mssfu30nismapconfigds_top
DS_flagsads_msspp_activationobjectds_top
DS_flagsads_msspp_activationobjectscontainerds_top
DS_flagsads_mstapi_rtconferenceds_top
DS_flagsads_mstapi_rtpersonds_top
DS_flagsads_mstpm_informationobjectds_top
DS_flagsads_mstpm_informationobjectscontainerds_top
DS_flagsads_mswmi_intrangeparamds_top
DS_flagsads_mswmi_intsetparamds_top
DS_flagsads_mswmi_mergeablepolicytemplateds_top
DS_flagsads_mswmi_objectencodingds_top
DS_flagsads_mswmi_policytemplateds_top
DS_flagsads_mswmi_policytypeds_top
DS_flagsads_mswmi_rangeparamds_top
DS_flagsads_mswmi_realrangeparamds_top
DS_flagsads_mswmi_ruleds_top
DS_flagsads_mswmi_shadowobjectds_top
DS_flagsads_mswmi_simplepolicytemplateds_top
DS_flagsads_mswmi_somds_top
DS_flagsads_mswmi_stringsetparamds_top
DS_flagsads_mswmi_uintrangeparamds_top
DS_flagsads_mswmi_uintsetparamds_top
DS_flagsads_mswmi_unknownrangeparamds_top
DS_flagsads_mswmi_wmigpods_top
DS_flagsads_nismapds_top
DS_flagsads_nisnetgroupds_top
DS_flagsads_nisobjectds_top
DS_flagsads_ntdsconnectionds_top
DS_flagsads_ntdsdsads_top
DS_flagsads_ntdsdsarods_top
DS_flagsads_ntdsserviceds_top
DS_flagsads_ntdssitesettingsds_top
DS_flagsads_ntfrsmemberds_top
DS_flagsads_ntfrsreplicasetds_top
DS_flagsads_ntfrssettingsds_top
DS_flagsads_ntfrssubscriberds_top
DS_flagsads_ntfrssubscriptionsds_top
DS_flagsads_oncrpcds_top
DS_flagsads_organizationds_top
DS_flagsads_organizationalpersonds_top
DS_flagsads_organizationalroleds_top
DS_flagsads_organizationalunitds_top
DS_flagsads_packageregistrationds_top
DS_flagsads_personds_top
DS_flagsads_physicallocationds_top
DS_flagsads_pkicertificatetemplateds_top
DS_flagsads_pkienrollmentserviceds_top
DS_flagsads_printqueueds_top
DS_flagsads_querypolicyds_top
DS_flagsads_remotemailrecipientds_top
DS_flagsads_remotestorageservicepointds_top
DS_flagsads_residentialpersonds_top
DS_flagsads_rfc822localpartds_top
DS_flagsads_ridmanagerds_top
DS_flagsads_ridsetds_top
DS_flagsads_roomds_top
DS_flagsads_rpccontainerds_top
DS_flagsads_rpcgroupds_top
DS_flagsads_rpcprofileds_top
DS_flagsads_rpcprofileelementds_top
DS_flagsads_rpcserverds_top
DS_flagsads_rpcserverelementds_top
DS_flagsads_rrasadministrationconnectionpointds_top
DS_flagsads_rrasadministrationdictionaryds_top
DS_flagsads_samserverds_top
DS_flagsads_secretds_top
DS_flagsads_serverds_top
DS_flagsads_serverscontainerds_top
DS_flagsads_serviceadministrationpointds_top
DS_flagsads_serviceclassds_top
DS_flagsads_serviceconnectionpointds_top
DS_flagsads_serviceinstanceds_top
DS_flagsads_siteds_top
DS_flagsads_sitelinkds_top
DS_flagsads_sitelinkbridgeds_top
DS_flagsads_sitescontainerds_top
DS_flagsads_storageds_top
DS_flagsads_subnetds_top
DS_flagsads_subnetcontainerds_top
DS_flagsads_subschemads_top
DS_flagsads_trusteddomainds_top
DS_flagsads_typelibraryds_top
DS_flagsads_userds_top
DS_flagsads_volumeds_top
DS_flagsds_accountds_top
DS_flagsds_acspolicyds_top
DS_flagsds_acsresourcelimitsds_top
DS_flagsds_acssubnetds_top
DS_flagsds_addressbookcontainerds_top
DS_flagsds_addresstemplateds_top
DS_flagsds_applicationentityds_top
DS_flagsds_applicationprocessds_top
DS_flagsds_applicationsettingsds_top
DS_flagsds_applicationsitesettingsds_top
DS_flagsds_applicationversionds_top
DS_flagsds_attributeschemads_top
DS_flagsds_bootabledeviceds_top
DS_flagsds_builtindomainds_top
DS_flagsds_categoryregistrationds_top
DS_flagsds_certificationauthorityds_top
DS_flagsds_classregistrationds_top
DS_flagsds_classschemads_top
DS_flagsds_classstoreds_top
DS_flagsds_comconnectionpointds_top
DS_flagsds_computerds_top
DS_flagsds_configurationds_top
DS_flagsds_connectionpointds_top
DS_flagsds_contactds_top
DS_flagsds_containerds_top
DS_flagsds_controlaccessrightds_top
DS_flagsds_countryds_top
DS_flagsds_crldistributionpointds_top
DS_flagsds_crossrefds_top
DS_flagsds_crossrefcontainerds_top
DS_flagsds_deviceds_top
DS_flagsds_dfsconfigurationds_top
DS_flagsds_dhcpclassds_top
DS_flagsds_displayspecifierds_top
DS_flagsds_displaytemplateds_top
DS_flagsds_dmdds_top
DS_flagsds_dnsnodeds_top
DS_flagsds_dnszoneds_top
DS_flagsds_documentds_top
DS_flagsds_documentseriesds_top
DS_flagsds_domainds_top
DS_flagsds_domaindnsds_top
DS_flagsds_domainpolicyds_top
DS_flagsds_domainrelatedobjectds_top
DS_flagsds_dsads_top
DS_flagsds_dsuisettingsds_top
DS_flagsds_dynamicobjectds_top
DS_flagsds_filelinktrackingds_top
DS_flagsds_filelinktrackingentryds_top
DS_flagsds_foreignsecurityprincipalds_top
DS_flagsds_friendlycountryds_top
DS_flagsds_ftdfsds_top
DS_flagsds_groupds_top
DS_flagsds_groupofnamesds_top
DS_flagsds_groupofuniquenamesds_top
DS_flagsds_grouppolicycontainerds_top
DS_flagsds_ieee802deviceds_top
DS_flagsds_indexservercatalogds_top
DS_flagsds_inetorgpersonds_top
DS_flagsds_infrastructureupdateds_top
DS_flagsds_intellimirrorgroupds_top
DS_flagsds_intellimirrorscpds_top
DS_flagsds_intersitetransportds_top
DS_flagsds_intersitetransportcontainerds_top
DS_flagsds_iphostds_top
DS_flagsds_ipnetworkds_top
DS_flagsds_ipprotocolds_top
DS_flagsds_ipsecbaseds_top
DS_flagsds_ipsecfilterds_top
DS_flagsds_ipsecisakmppolicyds_top
DS_flagsds_ipsecnegotiationpolicyds_top
DS_flagsds_ipsecnfads_top
DS_flagsds_ipsecpolicyds_top
DS_flagsds_ipserviceds_top
DS_flagsds_leafds_top
DS_flagsds_licensingsitesettingsds_top
DS_flagsds_linktrackobjectmovetableds_top
DS_flagsds_linktrackomtentryds_top
DS_flagsds_linktrackvolentryds_top
DS_flagsds_linktrackvolumetableds_top
DS_flagsds_localityds_top
DS_flagsds_lostandfoundds_top
DS_flagsds_mailrecipientds_top
DS_flagsds_meetingds_top
DS_flagsds_ms_net_ieee_80211_grouppolicyds_top
DS_flagsds_ms_net_ieee_8023_grouppolicyds_top
DS_flagsds_ms_sql_olapcubeds_top
DS_flagsds_ms_sql_olapdatabaseds_top
DS_flagsds_ms_sql_olapserverds_top
DS_flagsds_ms_sql_sqldatabaseds_top
DS_flagsds_ms_sql_sqlpublicationds_top
DS_flagsds_ms_sql_sqlrepositoryds_top
DS_flagsds_ms_sql_sqlserverds_top
DS_flagsds_msauthz_centralaccesspoliciesds_top
DS_flagsds_msauthz_centralaccesspolicyds_top
DS_flagsds_msauthz_centralaccessruleds_top
DS_flagsds_msauthz_centralaccessrulesds_top
DS_flagsds_mscom_partitionds_top
DS_flagsds_mscom_partitionsetds_top
DS_flagsds_msdfs_deletedlinkv2ds_top
DS_flagsds_msdfs_linkv2ds_top
DS_flagsds_msdfs_namespaceanchords_top
DS_flagsds_msdfs_namespacev2ds_top
DS_flagsds_msdfsr_connectionds_top
DS_flagsds_msdfsr_contentds_top
DS_flagsds_msdfsr_contentsetds_top
DS_flagsds_msdfsr_globalsettingsds_top
DS_flagsds_msdfsr_localsettingsds_top
DS_flagsds_msdfsr_memberds_top
DS_flagsds_msdfsr_replicationgroupds_top
DS_flagsds_msdfsr_subscriberds_top
DS_flagsds_msdfsr_subscriptionds_top
DS_flagsds_msdfsr_topologyds_top
DS_flagsds_msdns_serversettingsds_top
DS_flagsds_msds_app_configurationds_top
DS_flagsds_msds_appdatads_top
DS_flagsds_msds_authnpoliciesds_top
DS_flagsds_msds_authnpolicyds_top
DS_flagsds_msds_authnpolicysilods_top
DS_flagsds_msds_authnpolicysilosds_top
DS_flagsds_msds_azadminmanagerds_top
DS_flagsds_msds_azapplicationds_top
DS_flagsds_msds_azoperationds_top
DS_flagsds_msds_azroleds_top
DS_flagsds_msds_azscopeds_top
DS_flagsds_msds_aztaskds_top
DS_flagsds_msds_claimstransformationpoliciesds_top
DS_flagsds_msds_claimstransformationpolicytypeds_top
DS_flagsds_msds_claimtypeds_top
DS_flagsds_msds_claimtypepropertybaseds_top
DS_flagsds_msds_claimtypesds_top
DS_flagsds_msds_cloudextensionsds_top
DS_flagsds_msds_deviceds_top
DS_flagsds_msds_devicecontainerds_top
DS_flagsds_msds_deviceregistrationserviceds_top
DS_flagsds_msds_deviceregistrationservicecontainerds_top
DS_flagsds_msds_groupmanagedserviceaccountds_top
DS_flagsds_msds_managedserviceaccountds_top
DS_flagsds_msds_optionalfeatureds_top
DS_flagsds_msds_passwordsettingsds_top
DS_flagsds_msds_passwordsettingscontainerds_top
DS_flagsds_msds_quotacontainerds_top
DS_flagsds_msds_quotacontrolds_top
DS_flagsds_msds_resourcepropertiesds_top
DS_flagsds_msds_resourcepropertyds_top
DS_flagsds_msds_resourcepropertylistds_top
DS_flagsds_msds_valuetypeds_top
DS_flagsds_msexchconfigurationcontainerds_top
DS_flagsds_msfve_recoveryinformationds_top
DS_flagsds_msieee80211_policyds_top
DS_flagsds_msimaging_postscanprocessds_top
DS_flagsds_msimaging_pspsds_top
DS_flagsds_mskds_provrootkeyds_top
DS_flagsds_mskds_provserverconfigurationds_top
DS_flagsds_msmq_custom_recipientds_top
DS_flagsds_msmq_groupds_top
DS_flagsds_msmqconfigurationds_top
DS_flagsds_msmqenterprisesettingsds_top
DS_flagsds_msmqmigrateduserds_top
DS_flagsds_msmqqueueds_top
DS_flagsds_msmqsettingsds_top
DS_flagsds_msmqsitelinkds_top
DS_flagsds_mspki_enterprise_oidds_top
DS_flagsds_mspki_key_recovery_agentds_top
DS_flagsds_mspki_privatekeyrecoveryagentds_top
DS_flagsds_msprint_connectionpolicyds_top
DS_flagsds_mssfu30domaininfods_top
DS_flagsds_mssfu30mailaliasesds_top
DS_flagsds_mssfu30netidds_top
DS_flagsds_mssfu30networkuserds_top
DS_flagsds_mssfu30nismapconfigds_top
DS_flagsds_msspp_activationobjectds_top
DS_flagsds_msspp_activationobjectscontainerds_top
DS_flagsds_mstapi_rtconferenceds_top
DS_flagsds_mstapi_rtpersonds_top
DS_flagsds_mstpm_informationobjectds_top
DS_flagsds_mstpm_informationobjectscontainerds_top
DS_flagsds_mswmi_intrangeparamds_top
DS_flagsds_mswmi_intsetparamds_top
DS_flagsds_mswmi_mergeablepolicytemplateds_top
DS_flagsds_mswmi_objectencodingds_top
DS_flagsds_mswmi_policytemplateds_top
DS_flagsds_mswmi_policytypeds_top
DS_flagsds_mswmi_rangeparamds_top
DS_flagsds_mswmi_realrangeparamds_top
DS_flagsds_mswmi_ruleds_top
DS_flagsds_mswmi_shadowobjectds_top
DS_flagsds_mswmi_simplepolicytemplateds_top
DS_flagsds_mswmi_somds_top
DS_flagsds_mswmi_stringsetparamds_top
DS_flagsds_mswmi_uintrangeparamds_top
DS_flagsds_mswmi_uintsetparamds_top
DS_flagsds_mswmi_unknownrangeparamds_top
DS_flagsds_mswmi_wmigpods_top
DS_flagsds_nismapds_top
DS_flagsds_nisnetgroupds_top
DS_flagsds_nisobjectds_top
DS_flagsds_ntdsconnectionds_top
DS_flagsds_ntdsdsads_top
DS_flagsds_ntdsdsarods_top
DS_flagsds_ntdsserviceds_top
DS_flagsds_ntdssitesettingsds_top
DS_flagsds_ntfrsmemberds_top
DS_flagsds_ntfrsreplicasetds_top
DS_flagsds_ntfrssettingsds_top
DS_flagsds_ntfrssubscriberds_top
DS_flagsds_ntfrssubscriptionsds_top
DS_flagsds_oncrpcds_top
DS_flagsds_organizationds_top
DS_flagsds_organizationalpersonds_top
DS_flagsds_organizationalroleds_top
DS_flagsds_organizationalunitds_top
DS_flagsds_packageregistrationds_top
DS_flagsds_personds_top
DS_flagsds_physicallocationds_top
DS_flagsds_pkicertificatetemplateds_top
DS_flagsds_pkienrollmentserviceds_top
DS_flagsds_posixaccountds_top
DS_flagsds_posixgroupds_top
DS_flagsds_printqueueds_top
DS_flagsds_querypolicyds_top
DS_flagsds_remotemailrecipientds_top
DS_flagsds_remotestorageservicepointds_top
DS_flagsds_residentialpersonds_top
DS_flagsds_rfc822localpartds_top
DS_flagsds_ridmanagerds_top
DS_flagsds_ridsetds_top
DS_flagsds_roomds_top
DS_flagsds_rpccontainerds_top
DS_flagsds_rpcentryds_top
DS_flagsds_rpcgroupds_top
DS_flagsds_rpcprofileds_top
DS_flagsds_rpcprofileelementds_top
DS_flagsds_rpcserverds_top
DS_flagsds_rpcserverelementds_top
DS_flagsds_rrasadministrationconnectionpointds_top
DS_flagsds_rrasadministrationdictionaryds_top
DS_flagsds_samdomainds_top
DS_flagsds_samdomainbaseds_top
DS_flagsds_samserverds_top
DS_flagsds_secretds_top
DS_flagsds_securityobjectds_top
DS_flagsds_securityprincipalds_top
DS_flagsds_serverds_top
DS_flagsds_serverscontainerds_top
DS_flagsds_serviceadministrationpointds_top
DS_flagsds_serviceclassds_top
DS_flagsds_serviceconnectionpointds_top
DS_flagsds_serviceinstanceds_top
DS_flagsds_shadowaccountds_top
DS_flagsds_simplesecurityobjectds_top
DS_flagsds_siteds_top
DS_flagsds_sitelinkds_top
DS_flagsds_sitelinkbridgeds_top
DS_flagsds_sitescontainerds_top
DS_flagsds_storageds_top
DS_flagsds_subnetds_top
DS_flagsds_subnetcontainerds_top
DS_flagsds_subschemads_top
DS_flagsds_trusteddomainds_top
DS_flagsds_typelibraryds_top
DS_flagsds_userds_top
DS_flagsds_volumeds_top

Code samples for DS_flags property

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

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

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