Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Generate Excel which Shows ADUsers and his Groups in a Matrix with AllGroups

$
0
0

Hi There.

I Need an Excel table for managemet, which Shows the following:

The Colums should be named as Username ActiveDirectory and some Properties and ALL Groups which are availible in Active Directory

Each row should then contain Username and in the Column of Group an "X" or somthing else, if the user is in the Group - like a Matrix.

Username,Firstname,Lastname,Group1,Groups2,Group3,Group4...

Username1,Firstname1,Lastname1,,x,,x.. -- User1 is in Group2 and Group4

Username2,Firstname2,Lastname2,x,x,x,x... -- User2 is in Group 1-4

I thought about generating an Hashtable with all AD-Groups and a Hashtable with User and his AD-Groups, but I don't know how to match them.

Have anyone an idea?

Thanks.


Viewing all articles
Browse latest Browse all 21975

Trending Articles