Share via

how to compare a csv with users in AD

Renu Murali 21 Reputation points
2021-09-28T09:32:56.433+00:00

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 for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Rich Matheisen 48,116 Reputation points
    2021-09-28T14:51:10.453+00:00

    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

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.