Pau Lo
asked on
merging get-aduser and get-adgroupmember output into a single report
is there any easy way to supply an AD group name, and use the powershell ad cmdlets to produce a list of group members, and also against each group member, show some attributes about each member, e.g. sam account name, CN (common name), email address, enabled, lastlogontimestamp etc, and write all the results out to a tabular format as a CSV. I can use another app like excel or access to merge the 2 reports, but being able to produce it in a single command for certain groups would be most helpful. I appreciate some groups have groups within them as opposed just users, and in those cases the AD user fields would presumably just be blank.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Script provided.