Script to remove duplicate mail items after office365 migration

Ben Lester 26 Reputation points

We recently migrated over to o365 exchange some of the mailboxes duplicated the email items.

I’m looking for a script to remove the duplicates from those mailboxes

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,481 questions
0 comments No comments
{count} vote

Accepted answer
  1. Vasil Michev 99,936 Reputation points MVP
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. KyleXu-MSFT 26,236 Reputation points

    @Ben Lester

    Does the above reply helps? If the above reply helps, please be free to mark it as an answer for helping more people.

    I also want to confirm with you, whether those email in the same folder? If those duplicates emails in the same folder as original email, you could use Outlook "Clean Up" function to delete them:


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments