Hi,
I have this
$test1=import-csv -path "FilteredMailboxes.csv"
$test2=import-csv -path "ReportingUsers.csv"
compare-object $test1 $test2 -property "mail" | export-csv 'test3.csv' -notypeinformation
This is only getting me uncommon users between 2 CSVs.
I have an Exchange online script which update Group Membership every night. Currently I remove all members and add new members which takes a very long time.
To minimise time, I want to compare current members with new members and Output only new members.
Also if possible i want members which are not part of new membership be removed.
So compare 2 CSVs and:
1. Output 3rd CSV with new members
2. Output 4th CSV with members missing from new membership
Thanks
Hasan