DS_managedBy - property in ROOT\directory\LDAP namespace

DS_managedBy in other namespaces

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

propertyClassOrigin
DS_managedByads_applicationversionads_applicationversion
DS_managedByads_categoryregistrationads_categoryregistration
DS_managedByads_classregistrationads_classregistration
DS_managedByads_computerads_computer
DS_managedByads_dnszoneads_dnszone
DS_managedByads_domaindnsads_domaindns
DS_managedByads_domainpolicyads_domainpolicy
DS_managedByads_ftdfsads_ftdfs
DS_managedByads_groupads_group
DS_managedByads_msds_app_configurationads_msds_app_configuration
DS_managedByads_msds_appdataads_msds_appdata
DS_managedByads_ntdsdsaads_ntdsdsa
DS_managedByads_ntdssitesettingsads_ntdssitesettings
DS_managedByads_ntfrsreplicasetads_ntfrsreplicaset
DS_managedByads_ntfrssettingsads_ntfrssettings
DS_managedByads_organizationalunitads_organizationalunit
DS_managedByads_packageregistrationads_packageregistration
DS_managedByads_physicallocationads_physicallocation
DS_managedByads_remotemailrecipientads_remotemailrecipient
DS_managedByads_serverads_server
DS_managedByads_siteads_site
DS_managedByds_connectionpointds_connectionpoint

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

propertyClassOrigin
DS_managedByads_comconnectionpointds_connectionpoint
DS_managedByads_indexservercatalogds_connectionpoint
DS_managedByads_intellimirrorscpds_connectionpoint
DS_managedByads_ms_sql_olapserverds_connectionpoint
DS_managedByads_ms_sql_sqlserverds_connectionpoint
DS_managedByads_msds_groupmanagedserviceaccountads_computer
DS_managedByads_msds_managedserviceaccountads_computer
DS_managedByads_ntdsdsaroads_ntdsdsa
DS_managedByads_printqueueds_connectionpoint
DS_managedByads_remotestorageservicepointds_connectionpoint
DS_managedByads_rpcgroupds_connectionpoint
DS_managedByads_rpcprofileds_connectionpoint
DS_managedByads_rpcprofileelementds_connectionpoint
DS_managedByads_rpcserverds_connectionpoint
DS_managedByads_rpcserverelementds_connectionpoint
DS_managedByads_rrasadministrationconnectionpointds_connectionpoint
DS_managedByads_serviceadministrationpointds_connectionpoint
DS_managedByads_serviceconnectionpointds_connectionpoint
DS_managedByads_serviceinstanceds_connectionpoint
DS_managedByads_storageds_connectionpoint
DS_managedByads_volumeds_connectionpoint
DS_managedByds_applicationversionads_applicationversion
DS_managedByds_categoryregistrationads_categoryregistration
DS_managedByds_classregistrationads_classregistration
DS_managedByds_comconnectionpointds_connectionpoint
DS_managedByds_computerads_computer
DS_managedByds_dnszoneads_dnszone
DS_managedByds_domaindnsads_domaindns
DS_managedByds_domainpolicyads_domainpolicy
DS_managedByds_ftdfsads_ftdfs
DS_managedByds_groupads_group
DS_managedByds_indexservercatalogds_connectionpoint
DS_managedByds_intellimirrorscpds_connectionpoint
DS_managedByds_ms_sql_olapserverds_connectionpoint
DS_managedByds_ms_sql_sqlserverds_connectionpoint
DS_managedByds_msds_app_configurationads_msds_app_configuration
DS_managedByds_msds_appdataads_msds_appdata
DS_managedByds_msds_groupmanagedserviceaccountads_computer
DS_managedByds_msds_managedserviceaccountads_computer
DS_managedByds_ntdsdsaads_ntdsdsa
DS_managedByds_ntdsdsaroads_ntdsdsa
DS_managedByds_ntdssitesettingsads_ntdssitesettings
DS_managedByds_ntfrsreplicasetads_ntfrsreplicaset
DS_managedByds_ntfrssettingsads_ntfrssettings
DS_managedByds_organizationalunitads_organizationalunit
DS_managedByds_packageregistrationads_packageregistration
DS_managedByds_physicallocationads_physicallocation
DS_managedByds_printqueueds_connectionpoint
DS_managedByds_remotemailrecipientads_remotemailrecipient
DS_managedByds_remotestorageservicepointds_connectionpoint
DS_managedByds_rpcentryds_connectionpoint
DS_managedByds_rpcgroupds_connectionpoint
DS_managedByds_rpcprofileds_connectionpoint
DS_managedByds_rpcprofileelementds_connectionpoint
DS_managedByds_rpcserverds_connectionpoint
DS_managedByds_rpcserverelementds_connectionpoint
DS_managedByds_rrasadministrationconnectionpointds_connectionpoint
DS_managedByds_serverads_server
DS_managedByds_serviceadministrationpointds_connectionpoint
DS_managedByds_serviceconnectionpointds_connectionpoint
DS_managedByds_serviceinstanceds_connectionpoint
DS_managedByds_siteads_site
DS_managedByds_storageds_connectionpoint
DS_managedByds_volumeds_connectionpoint

Code samples for DS_managedBy property

Get instance of WMI class using GetObject, DS_managedBy property of ds_group

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

WMI query - sample windows WQL with C#, DS_managedBy property of ds_group

Get a specified instance of ds_group 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_group Where ADSIPath=\"LDAP://CN=WinRMRemoteWMIUsers__,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_managedBy : {0}", m["DS_managedBy"]);
  
}

WMI query - sample windows WQL with VB.Net, DS_managedBy property of ds_group

Get a specified instance of ds_group 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_group Where ADSIPath="LDAP://CN=WinRMRemoteWMIUsers__,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_managedBy : {0}", mObject("DS_managedBy"))
Next
comments powered by Disqus
WUtils.com