Page 1 of 1

managedby for a single user

Posted: 11 Aug 2011 08:21
by mseiler
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:

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