Active Directory Reports on Distribution/Security Groups

What is the best method to find out how many (With the name) distribution and security groups we have within Active Directory.

I was thinking a query, but wouldn't know what to write for the code.

Ideally I would like a CSV file with a table that includes both Security and Distribution Groups, and then I can sit down and see which ones are not needed.

Any help, and suggestions are greatly appreciated.

Thanks.
mishcondereyaAsked:
Who is Participating?
 
Joseph DalyConnect With a Mentor Commented:
Why not just do it the easy way. In the AD users and computers you can run this query.
(&(objectCategory=group)(name=*))

Basically any group where a name is present it will find. It will display like below and then you can export the list.
1.jpg
2.jpg
0
 
Brian PiercePhotographerCommented:
0
 
mishcondereyaAuthor Commented:
Top man!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.