The below guide focuses on setting up exchange retention policies.
Connect to Exchange Online
Assure polite his really and others figure though. Day age advantages end sufficient eat expression travelling
Connect-ExchangeOnline -UserPrincipalName youradmin@yourdomain.com
To find what retention policy is assigned to a specific mailbox in Exchange Online or Exchange Server, use the following PowerShell command:
Get-Mailbox -Identity user@domain.com | Select-Object Name,RetentionPolicy
Once you know the policy name (e.g., Default MRM Policy
), you can list all the retention tags in that policy:
Get-RetentionPolicy -Identity "Default MRM Policy" | Select-Object Name,RetentionPolicyTagLinks
To enable archive mailboxes for a user:
Enable-Mailbox -Identity user@domain.com -Archive
To enable archive mailboxes for all users:
Get-Mailbox -Filter {ArchiveStatus -Eq 'None'} -ResultSize Unlimited | Enable-Mailbox -Archive
Archive mailbox provisioning may take a few minutes. You can verify with:
Get-Mailbox -Identity user@domain.com | Select Name,ArchiveStatus
Forcing Retention Policies:
Start-ManagedFolderAssistant -Identity user@domain.com