Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Report of security groups in AD

  • 25-10-2012 09:16AM
    #1
    Registered Users, Registered Users 2 Posts: 3,100 ✭✭✭


    Hi All

    Is it possible to run a report in AD to pull all the members and Security Groups instead of typing them manually?


Comments

  • Registered Users, Registered Users 2 Posts: 752 ✭✭✭goose06




  • Registered Users, Registered Users 2 Posts: 200 ✭✭druidhill


    That solution seems a little outdated, and I'd imagine PowerShell would be the way to do that now. Unfortunately, spelling it is about as much as I know on the matter.


  • Registered Users, Registered Users 2 Posts: 8,814 ✭✭✭BaconZombie


    This is what I've used in the past, the ouput is a bit dirty but it works

    GL.BAT
    [COLOR="Lime"]
    
    @ECHO OFF
    
    :WTF
    
    DSQUERY  group -name "%1" | DSGET group -members -expand >> %1.txt
    
    :END
    
    [/COLOR]
    
    

    Usage.
    [COLOR="Lime"]X:\>GL ID10t_Users[/COLOR]
    
    
    
    
    
    
    


    Edit:

    I have a longer version that appends the current date and time to the file name and cleans put the output so I can import it into a nice Manager/Audit friend report but don't have access to it at the moment.


  • Registered Users, Registered Users 2 Posts: 314 ✭✭Alzar


    I've used this tool quite a bit. It lists all AD security groups & exports the members of selected group(s) to a csv if required.

    http://ctxadmtools.musumeci.com.ar/ADGroupMembers/ADGroupMembers11.html

    HTH!

    Al.


Advertisement