Forum Discussion
ellan1537
Nov 27, 2023Iron Contributor
Replace existing retention labels on emails
There are tons of emails in multiple users outlook (M365) on which Retention Labels were applied. We've came up with a new set of retention labels now. Is there a script that can remap all the ex...
- Feb 01, 2024After going over this with my team and Microsoft, seems like there is no option to do this exactly that way. Although, you could use the Purview’s Content Search to get a report on Retention labels applied in Exchange.
These are the M365 Retention Labels, not MRM tags.
VasilMichev
Nov 29, 2023MVP
Exchange/SCC cmdlets do not work on the item level, you cannot perform such operations with them. This is why I suggested to use EWS instead.
Moreover, you cannot search by RetentionLabel... was this generated by ChatGPT?
Moreover, you cannot search by RetentionLabel... was this generated by ChatGPT?
ellan1537
Nov 29, 2023Iron Contributor
The EWS script referenced above appears to be for Exchange on-premises environment. Is there similar EWS script for Exchange Online environment?
- VasilMichevNov 30, 2023MVPThe only difference between on-premises and Exchange Online is how you connect to the mailbox. The actual EWS operations remain the same.
If you need examples on how to connect to Exchange Online mailboxes via EWS, check here: https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth