troubleshooting Question

Get a list of AD groups and their members

Avatar of rookie_b
rookie_b asked on
PowershellWindows Server 2012Active Directory
3 Comments1 Solution107 ViewsLast Modified:
I have a list of AD groups and would like to export them into a report, which includes both the group name and the members. Exporting directly to csv only gives me the members, so I was wondering if there was a way to get the group name as well. Is there an approach I could apply to other commands in general? How do I  include the object against which the command was run alongside the command output itself?

Thank you!
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros