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