Discover how you benefit when you make MessageOps your Microsoft Cloud Solution Partner.
To export Office 365 mailboxes to PST files from Exchange Online, choose the Export to PST from Exchange Online on the main screen and click next.
On the next screen you will be prompted for your Administration Credentials for Office 365. This account must have a mailbox.
The next screen has several options which are described below:
Click the Select Mailbox button to select the mailbox(es) that need to be fixed and click Select Mailbox to add the mailboxes to the export list.
When the export starts if you get prompted for a username and password enter the Office 365 Administrator username you entered previously on the remote PowerShell Screen and check the box to remember the credentials. You must check the box to remember the credentials when prompted or the export won’t work.
When you export office 365 mailboxes to PST files, the admin account is automatically granted access to the mailbox and that access is then removed when the export is complete. With the 2010 version of Office 365 this permission change took place almost immediately. With the 2013 version it can take several minutes, and if you try and connect before the permissions are applied, it seems to take even longer before you can access the mailbox. While we still add permissions if they don’t exist, we wait 15 minutes before trying to access the mailbox after adding the permissions. If you are doing a large number of exports we highly recommend adding the permissions ahead of time to avoid this delay.
To Grant full Access to a Mailbox in Office 365 you must first connect to the remote PowerShell, by typing the 3 commands in your local PowerShell:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $o365cred -Authentication Basic -AllowRedirection
After you are connected, run the following command to give your admin account full access to all mailboxes:
Get-Mailbox -resultsize unlimited| Add-mailboxpermission -user [email protected] -AccessRights FullAccess -Automapping $false
To later remove the permissions, run the following command:
Get-Mailbox -resultsize unlimited| Remove-mailboxpermission -user [email protected] -AccessRights FullAccess