In this quick tip, we review PowerShell command to apply Retention Policy that you have just created on your Office 365 but it did not automatically run. The issue is that the workcycle period of Retention Policy by Managed Folder Assistant runs every 7 days. If you want your newly created Retention Policy to start immediately on a mailbox, you will first have to connect to use Remote PowerShell to your Office 365 account.
Once you are connected to your Office 365 account, you can check which Retention Policy has been applied to a particular mailbox. The PowerShell syntax is as followed:
Get-Mailbox <Mailbox> | FL RetentionPolicy
Get-Mailbox yourmailbox@yourOffice365account.com| FL RetentionPolicy
Once you’ve verified the Retention Policy, you can then run the Managed Folder Assistant on the specific mailbox with the following PowerShell syntax:
Once you applied the PowerShell command above, you wait for 5 minutes or so before logging into your OWA to check the progress of your Retention Policy.