Remove Duplicate Emails/Calendar Events from Public Folders on Exchange Online

Files required can be downloaded from Github:

Details on the syntax can be found here:

$cred = get-credential; #here I put in your o365 email and password as the credentials

.\Remove-DuplicateItems.ps1 -PublicFolders -Identity <user_email> -Server -Credentials $cred -PFStart “\”;

#the above connects to EO, cleans the public folders starting at the root.

System indexing mail based off query
Confirmation to remove found results
Process of deleting duplicate results

*Posts on this site may contain affiliated links*

Leave a Reply