Hi All,
I'm new to the forum & Powershell but I wanted to give this a shot as I've been struggling for a while on it:
What I'm looking to do is to scrub AD for members of 5-10 specific AD groups (Easy enough)
* HOWEVER *, the tricky part is: I'm looking for sort-of a different format for how it shows what groups each user is in..
Lets say I tell powershell to show me the users in Group1,Group2,Group3,Group4 & Group5..Here's how I want the output to look:
AccountName |
FirstName |
LastName |
GroupMembership |
dmcsprinkles |
Donut |
McSprinkles |
Group2,Group3,Group5 |
hburger |
Hank |
Burger |
Group1,Group2 |
nspagetters |
Noodles |
Spagetters |
Group4 |
Or a column for each group would be fine too.
Everything I've been able to script myself or seen in forums gives me back a CSV with the same user listed multiple times (per each group it found them in - which won't work for the project I'm on right now.
Any help would be much appreciated!!
Thanks!