Exporting User Mailboxes to PST from Exchange 2010

Exporting User Mailboxes to PST from Exchange 2010.

Firstly you need to be on a computer that can run a 64Bit OS and be in the same domain as the Exchange server. You will need the following pre-requisites –

  • Installation of 64 Bit Windows Operating System
  • Installation of Powershell 2.0
  • Installation of .NET Framework 3.51
  • Installation of Outlook Office 2010 64 Bit
  • Installation of Exchange Server 2010 management tools (Either from the Exchange 2010 media or the relevant service pack for you Exchange Server version)
  • Logon with an administrative account with Exchange’s full administrative permissions

You need to run the following command to make sure you have access to export the users mailboxs

New-ManagementRoleAssignment -Role "Mailbox Import Export" -User [username]

Once you have followed the above pre-req’s you then need to open the Exchange Management Shell on the management computer ( NOT the Exchange Server) and run
the following command –

New-MailboxExportRequest -Mailbox [username] -PSTFolderPath [\\path\to\pst\file.pst] (this could be \\server\C$\pst\file.pst - this has to be a UNC path)

This should then export the mailbox to a PST file. To check on progress you can type –

Get-MailboxExportRequest

This will show you the status of the export requests.

You can also export a whole mailbox database by inputting the following command –

$Export = get-mailbox -Database [database name]; $Export|%{$_|New-MailboxExportRequest -FilePath "\\server\C$\pst\$($_.alias).pst"}

Or by OU if you prefer –

$Export = get-mailbox -OrganizationalUnit "Badger Users"; $Export|%{$_|New-MailboxExportRequest -FilePath "\\server\C$\pst\$($_.alias).pst"}

Sometimes you will get the following error –

New-MailboxExportRequest: Error was found for [username] because: Error occurred in the step: Approving object.
Access Denied., error code: -2147024891

After further investigation I found a that the Exchange subsystem needed access to the destination folder.

On the destination path (if it is not a local disk) add the following security permissions –

Exchange Organisation Administrators - Full Control
Exchange Recipient Administrators - Full Control
ExchangeLegacyInterop - Full Control
Exchange Server - Full Control

Once you change the folder security the mailbox will export to a PST.

© 2017 Vertical IO | Website by Vertical IO