What I also need is to get the OU in which every AD user belongs. The partial result of the file is:
UserName ColleagueID LastName GroupName FirstName GroupMember
MMX1111E 818523 Matlock Astra Off-Campus Michael Microsoft.ActiveDirectory.Management.ADPropertyValueCollection
JEM2222E 3426815 Jensen Astra Off-Campus Eric Microsoft.ActiveDirectory.Management.ADPropertyValueCollection
In GroupMember, the information I want to see is the OU in which the groupName Astra Off-Campus is in.
In this case, an OU called Astra Access Control has the GroupName Astra Off-Campus and others in it.
Please, refer to attached file to see results.
Can someone tell me what can I do to get those results? Example.csv