simple error checking between AD and CSV

Or you could just do it like this:

  1. Get-ADUser | Export-Csv -path c:\ADusers.csv
  2. Use Excel to compare the two csv files.

The Vlookup function might do the trick…

So you only extract data from AD once!!!