question

ChatoMller-9392 avatar image
0 Votes"
ChatoMller-9392 asked ChatoMller-9392 commented

Mailbox retention policy - assign policy tag to mailbox folder using powershell

I have an retention policy created in EAC containing two personal tags and one default for managed folder (inbox).
Anyone know how I can assign this policy correctly to entire mailbox and assign a spesific personal policy tag to a spesific mailbox folder?
This all works fine when doing it manually in Outlook or OWA, however I want to do this for multiple users thus looking to powershell.

office-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
1 Vote"
michev answered ChatoMller-9392 commented

You cannot assign individual tags via PowerShell, only the policy. To perform this task, you will need an EWS or Graph-based solution, such as the one here: https://github.com/gscales/Exch-Rest/blob/master/functions/other/Set-EXRFolderRetentionTag.ps1
Refer to the module help for more info: https://github.com/gscales/Exch-Rest

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Many thanks @michev for confirming what was my though for this.

0 Votes 0 ·