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 |
2 | John.Doe | Sales Group |
3 | Jane.Doe | Sales Group |
4 | Sandra.Johnson | Sales Group |
5 | Bill. Carlson | Sales Group |