Find what is different in two very large lists

I have two lists about 1k people each list. What I want to do is find who is leftover between the two.

$BunchoEmail = Import-Csv C:\temp\Directory.csv | Select-Object primaryEmail -ExpandProperty primaryEmail

$GoogleUsers = gam print users fields suspended | ConvertFrom-Csv | Where-Object suspended -ne $true | Select-Object primaryEmail -ExpandProperty primaryEmail

$objects = @{
    ReferenceObject  = $GoogleUsers
    DifferenceObject = $BunchoEmail
Compare-Object @objects

Above didn't produce what I wanted.

What is the best way to find what is different ?

Read more here:

Content Attribution

This content was originally published by dcaz at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: