Find all users in an Active Directory group from the command line (no matter what your perms)

For some reason no one has ever trusted me enough to let me help administer the active directory groups. This means I'm always adding database perms to groups somewhat blindly, hoping the group names are intuitive enough that I can deduce who's in them. Enter the magic of the command line! Turns out you can view the members of an AD group with a quick trip to the command prompt. Witness: 1. Go to the command prompt. 2. Type:

net group /domain TheGroupName

3. Hit Enter. The image below shows how to find the members of a group called "reportwriters". command line active directory group 1 That's it. Now you can go back to wondering why they trust you with all their data but not with their Active Directory 🙂 xfiles

By Phil Steffek

Phil Steffek is a professional sumo wrestler who is hoping to represent the U.S. in the next Olympics. During the off season Phil is a Data Architect working on transactional databases, data warehouse implementations, and all aspects of business intelligence. Also, Phil is not really a sumo wrestler. You can get to know a bit more about my non-sumo doings by checking out my LinkedIn Page

Leave a comment

Your email address will not be published. Required fields are marked *