When script run has to check all groups within a OU. Then match each Email address of each member with the other and remove the users if match found.
I have few groups that will have a contact and a user account as members of the group. both with email addresses that will be same. So help with a script that can check each group see if there is a email address duplicate and then remove the user leaving the unique contact
Record a report on the removals
The group will have many other user also. So need to be sure on removal of just the duplicate email matching users.
Any help is of great use.