Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Help with Active Directory writing to Excel

$
0
0

I need help writing a script that reads an excel worksheet called “AD User List” that contains in Column A the Active Directory (AD) acct IDs of all users in our domain. For each AD acct listed in this column, I need to query AD and pull back all the “Member Of” information, and then I need to write this information into the adjacent cell in Column B.

Here is an example.

 

Column A

Column B

1

Tom.Smith

Sales Group
DL.Sales Team
Member Sales
Detriot Team
Inside Sales

2

John.Doe

Sales Group
DL.Sales Team
Member Sales

3

Jane.Doe

Sales Group
DL.Sales Team
Member Sales

4

Sandra.Johnson

Sales Group
DL.Sales Team
Member Sales

5

Bill. Carlson

Sales Group
DL.Sales Team
Member Sales


Viewing all articles
Browse latest Browse all 6937

Trending Articles