How To: Exporting Office 365 Mailboxes to PST Files

Follow

Comments

2 comments

  • Avatar
    Steve Hall

    An Important Note about Exporting PST’s from the 2013 version of Office 365

    When exporting mailboxes to PST files from Office 365, 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.

    Grant Full Access to All Mailboxes

    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:

    $o365cred=get-credential

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $o365cred -Authentication Basic -AllowRedirection

    Import-PSSession $session

    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 admin@yourdomain.com -AccessRights FullAccess -Automapping $false

    To later remove the permissions, run the following command:
    Get-Mailbox -resultsize unlimited| Remove-mailboxpermission -user admin@yourdomain.com -AccessRights FullAccess

  • Avatar
    Harold Moorhead

    Anyone else having issues getting 365 hosted archive mail boxes to export?  

Please sign in to leave a comment.