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

Disable automatic forwarding in Office 365 and Exchange Server to prevent information leakage

This article is describing a brief guide on how to prevent internal users from auto-forwarding emails to external mailbox users and on how to disable automatic email forwarding in Office 365 and Exchange Server. Allowing users to use mail auto-forwarding brings the risk of information leakage. Additionally, users can select the option to not keep…

2

How to export and filter All Available MailboxDiagnosticLogs

Exchange offer us access to Mailbox Diagnostic Logs so in case of issues we know what happened with many components. The cmdlet is available both in Exchange and Exchange Online but some parameter’s values might differ. Here I’ll focus only on Exchange Online. You can find official documentation about Export-MailboxDiagnosticLogs on TechNet. I noticed that…

1

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

Move folder content from a source mailbox to a target mailbox, in Exchange Online (EWS Managed API 2.2)

As a result of many customer inquiries, I have decided to write the script below that moves mailbox data from a source mailbox to a target mailbox. Use this script when the source and the target mailboxes are created in mirror, with the same folders/subfolders on each side. In case there are folders existing only on the…

0

How to generate a message trace with more than 5000 lines in PowerShell

Applies to: Exchange Online, Exchange Online Protection.   This scenario is addressed to companies that generate high mail flows or use multiple applications to relay emails. Many admins are at some point facing a situation where analyzing a complex transport scenario is needed, this being translated into generating lengthy message traces.   The purpose of…

6

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

Recover deleted items from a group mailbox with EWS Managed API 2.2

In case you’re interested in recovering the deleted items from a group mailbox…   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 will impersonate the mailbox that is…

2