question

RenuMurali-7202 avatar image
0 Votes"
RenuMurali-7202 asked RichMatheisen-8856 answered

how to compare a csv with users in AD

Hello Everyone,

I have a task to be accomplished.Where i have a csv which contains list of the users. I have to compare these users with the AD to find active users and inactive users in powershell.
I need to export active users into a csv and inactive to a secon csv.
How do i compare the csv to AD.
The common field for comparison is emailaddress.


any help would be appreciated.

Thanks & Regrads,
Renu.

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

I believe this is a duplicate question. Here's what I think is the original: power-shell-script-to-compare-2-csv-and-give-only.html


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.