managedby for a single user
Posted: 11 Aug 2011 08:21
Hello,
I've got a very simple question but I don't get it on my own:-(
I just want to get the "Manager" from a single group. I have found the code for every group if there is a known manager:
But how can I change the code that I get only the manager for one single group. For example if the user has to enter the groupname manally.
Does anyone have an idea?
Thank you in advance.
Regard
Michael
I've got a very simple question but I don't get it on my own:-(
I just want to get the "Manager" from a single group. I have found the code for every group if there is a known manager:
Code: Select all
dsquery * -filter "(&(objectClass=group)(managedBy=*))" -attr samaccountname managedby -limit 0
pause
But how can I change the code that I get only the manager for one single group. For example if the user has to enter the groupname manally.
Does anyone have an idea?
Thank you in advance.
Regard
Michael