Friday, September 10, 2010

Flattening an AD group hierarchy

Sometimes it can be difficult to find all the members of an active directory group when there are multiple child or sub groups.

To flatten the hierarchy, use this command:
dsquery group -limit 0 | select-string group_to_find | dsget group -members -expand

0 comments:

Post a Comment