Friday, February 4, 2011

Command to get member's in a AD group

If you need to query for the member's present in a AD group is -

csvde -f report.txt -r (sAMAccountName=) -l member

Substitute the with the group you want eg SalesGroup and the report will be generated as report.txt.

csvde -f report.txt -r (sAMAccountName=SalesGroup) -l member

1 comment:

Anonymous said...

For local groups on server you can do net localgroup ...just an fyi.