Archive public folder emails older than 2 years

As we all know, retention policies aren’t supported for public folder mailboxes. In case you want to archive/move your old public folder emails to a public folder, specially created for archiving, this script might turn to be useful. First, it prompts you to create the public folder (archive) and then, it is recursively returning the public folder structure…

0

How to remove the MobilePhone from my Public Folder contacts?

In case you want to remove the “MobilePhone” property for all your public folder contacts, you can use this script. The same reasoning applies for other properties, with the mention that you need to load the corresponding extended property for them.   Prerequisites: -The script requires EWS Managed API 2.2, which can be downloaded here:…

0

Empty your online archives with EWS Managed API

In case you want to remove the content of your online archives, I have written this script that does it automatically for you.   Prerequisites: -Create a file with the user mailboxes that have an online archive enabled: “UserAccounts.txt” EmailAddress user1@domain.onmicrosoft.com user2@domain.onmicrosoft.com user3@domain.onmicrosoft.com -Create a new RBAC group or use an existing one from Exchange Admin Center –…

0

Merge a source and a target mailbox with EWS Managed API, in Exchange Online

Enjoy it!   Prerequisites: Grant full access rights on the source and target mailboxes to a third Exchange Online mailbox for whose credentials you’ll be prompted.   DISCLAIMER: This application is a sample application. The sample is provided “as is” without warranty of any kind. Microsoft further disclaims all implied warranties including without limitation any implied warranties…

0

Export a mailbox to a target mailbox folder with EWS Managed API, in Exchange Online

In case you have used Search-Mailbox to export your mailbox data into a target mailbox folder and you encountered issues, this solution may turn to be a good alternative.   Prerequisistes -The script requires EWS Managed API 2.2, which can be downloaded here: https://www.microsoft.com/en-gb/download/details.aspx?id=42951 -You will connect to the service with an Exchange Online mailbox…

2

Recover public folder deleted items with EWS Managed API and Exchange Online PowerShell

As we all know, when you want to recover public folder deleted items, you use the Outlook client – Recover deleted items option. However, this option is visible only if the public folder is hosting email items (“IPF.Note”). For scenarios where you plan to recover calendar, note, journal, task or contact items, you can use either a client, like MFCMAPI (more…

0

Empty/clean up a group mailbox with EWS Managed API 2.2

There is not much to say here. Hope you’ll find it useful! Feel free to share your opinions. 🙂   Prerequisites: -Create a new RBAC group or use an existing one from Exchange Admin Center – Permissions – Admin Roles. Add the ‘ApplicationImpersonation’ role to the group and add as member the service account that…

0

Move email messages from a source folder to a target folder with EWS Managed API 2.2, in Exchange Online (including archive mailbox folders)

I have recently heard that there are customers interested in finding a way to move hundreds of emails from a source folder located in their primary mailbox, to a target folder from within their archive mailbox. Although, I am still an apprentice when it comes to programming, I have managed to create the script below which helped me…

4

Delete a list of folders from specific mailboxes with EWS Managed API 2.2 and Application Impersonation, in Exchange Online

Some time ago, I worked with a customer that wanted to remove a folder that he had created in multiple mailboxes and he didn’t know how to achieve that in bulk. At that moment, I came across a very interesting article written by one of our colleagues that explains how to create a folder under…