Help
Recursive Group Export Print E-mail
1 Vote
Written by Carlton Colter   
Monday, 04 February 2008 00:00

Do you need to export groups from active directory? What if a group is inside another group? How do you export them all when you need to know who the people are that are members of a single group after following the trail through each group?

With this script, the Recursive Group Export script, you can find out.

This script exports the users that are a member of the group either directly or through another group. For example if John is a member of the admin group and the admin group is a member of the cool group and the cool group is in the organizational unit you are running this script against, then it will show that John is part of the cool group. But also, if you have Mark who is a member of the expert group, and the expert group is a member of the cool group, it will show Mark. It will also show why Mark is part of the cool group so that you don't have to trace the membership that caused him to be included.

With some minor modifications, it can be scheduled to run daily using scheduled task, then run to export to a folder.

Script Code:

Last Updated ( Saturday, 26 December 2009 14:55 )
 

3 Comments

Feed
  1. I was looking for a script to start with and in my case I want to extend it to list all the groups and subgroups with memebers.

    Parent Group --> Subgroup1 -->Subgroups2 --Subgroup3 --- Users list
  2. I think that is a great idea, so I am modifying the script to show the export group, the full path, and the member.
  3. It works great! Thanks a lot!

Add Comment


    • >:o
    • :-[
    • :'(
    • :-(
    • :-D
    • :-*
    • :-)
    • :P
    • :\
    • 8-)
    • ;-)



    Click to get a new image.