-{ a hewer of maps }-

Retrieve members of AD group

How to retrieve members and email of an Active Directory group in a re-usable format.

Locate dsget command line utility and put it in path.

Open an administrative command shell and:

dsget group "CN=mygroup,OU=mydepartment,OU=Users and Groups,DC=mydomain,DC=ca" -members |dsget user -samid -display -email


Searching Active Directory » « COMfounded python