10 May, 2009

Get AD group members (including nesting)

I looked for some time now for a command that will give me all the members of a group even if it contains nesting groups.





I'm happy to inform you that the answer was allways under my nose.





The command was: DSGET.





The following syntax worked for me:


==================================


dsget group CN=Group_Name,OU=Groups,DC=domain,DC=local -members -expand


==================================





MS Link





You can mix it up with my tip on how to get the DN from an NT name and simplify the command...

No comments:

Post a Comment