Here I am going to show you how to archive mailboxes to PST and how to deal with errors along the way. When I first attempted the export in Exchange 2010, I ran across 2 error messages which prevented me from exporting a mailbox. Below are the steps I performed to correct the issue.
1. The very first step is to make sure the user running the export command have necessary permissions:
In Exchange 2010 ECP, go to Roles & Auditing and you may have to add a new Role called ‘Mailbox Import Export Role’ to the user. Under Role Groups, select New, Enter the Name of the Role and you can set the scope to default. Under Roles, add ‘Mailbox Import Export Role’ and under members, add the group or user who will be running the export command.
If the role is not setup before running the export, the process will have an error ‘Couldn’t find the Enterprise Organization container’.
2. Next step is to create a share, preferably on the Exchange server to where all the archive emails will be saved. Make sure to add FULL share and security permissions for Exchange Trusted Subsystem (normally found in your root domain – root\Exchange Trusted Subsystem) and SYSTEM. If you are running the Information Store with a specific service account, then you will have to add that account too.
If the permissions are not setup correctly, an error will be displayed after running the export command: ‘Unable to open PST file ‘\\location\name.pst’. Error details: Access to the path is denied.
Note: When I tried to google for an answer to this error message, I only came across articles suggesting to add the ‘Exchange Trusted Subsystem’ to the shared folder. And unfortunately, it did not fix my issue. I found the SYSTEM in all of my built-in Exchange shares and that is what lead me to the resolution.
3. Export the mailbox by running the command:
New-MailboxExportRequest -Mailbox name -Filepath \\UNC_path_from_step_#2\name.pst
4. After successfully running the export command, you can run the Get-MailboxExportRequest to see the status of the export.
I hope this article helps other users out there who are trying to export mailboxes for the first time.