AIM

How to enable Online Archive in Office 365

The following instruction will enable Online Archive on all mailboxes in Office 365.

1. Set the execution policy. For example:
Set-ExecutionPolicy -ExecutionPolicy unrestricted

2. Set the credentials.
$LiveCred=Get-Credential

3. Create a new powershell session.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

4. Import the session.
Import-PSSession $Session

5. Enable Online Archive on ALL users in Office 365.
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq ‘UserMailbox’)} | Enable-Mailbox -Archive

Best Regards

Anders Månsson
Senior Consultant
AddLevel AB

Posted in Blog, Office 365.