How to Import and Export Mailboxes using PST Files in SBS 2011 Standard

How to Import and Export Mailboxes using PST Files in SBS 2011 Standard

  • Comments 28
  • Likes

[Today’s post comes to us courtesy of Gagan Mehra and Wayne Gordon McIntyre from Commercial Technical Support]

There might be instances where an Exchange Administrator will need to export the contents of individual mailboxes to offline files (PST). With Exchange 2010 SP1 we have new set of PowerShell commandlets to export and import mailboxes to and from PST files. Exchange 2010 SP1 makes this much simpler by having its own PST reader and writer. If you recall from SBS 2008 there were a large number of requirements needed to be able to export/import PSTs. You can view the process of exporting/importing PSTS on SBS 2008 from the following blog post.

Important:  If you use PSTs to migrate mailboxes from one Exchange server to another instead of using a mailbox move request, you will need to read the following blogpost to correct a certain issue with replying to old email:

Export/Import Requirements

By default, no user is allowed to Import/Export the mailboxes from Exchange PowerShell. In order to view or run Import/Export Cmdlets in Exchange PowerShell, you need to be given explicit permission.

In order to provide a user with permission to Import and Export, you need to run the following command from Exchange Management Shell. You can also assign this permission to a group if necessary using the -Group option:

New-ManagementRoleAssignment –Role “mailbox import export” –User “Admin”


Once the above command is run, close and reopen the Exchange Shell as administrator.  The Import and Export Cmdlets will now be available to the Admin user. You can now Export and Import mailboxes from Exchange Management Shell using the new MailboxExportRequest and MailboxImportRequest cmdlets.

Exporting Data from an Exchange 2010 SP1 Mailbox to PST File

With Exchange 2010 SP1, exporting a mailbox will be done by using “New-MailboxExportRequest” Cmdlet.

In order to Export the entire mailbox content to a PST file we need to run the following command:

New-MailboxExportRequest –Mailbox user –FilePath “\\<servername>\Sharename\user.pst”

Note that the -Mailbox and -FilePath parameters are the only required parameters of the cmdlet. Additionally the -FilePath parameter only accepts a UNC path (\\servername\share).


The “New-MailboxExportRequest” will trigger the export of the mailbox to a PST file and queue the request. In order to confirm the status of the mailbox export request we can run:



In this case the mailbox export has completed successfully. If you wish to remove the completed mailbox export requests from the queue you can run:

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest

Exchange 2010 SP1 also provides you the granularity of Exporting particular data from a Mailbox by using the –IncludeFolders parameter. For Example, if you want to export only the Inbox of a mailbox then you can use –IncludeFolders parameter specifying the inbox folder..

For exporting only the inbox of a mailbox you have to use following command:

New-MailboxExportRequest –Mailbox “user” –FilePath “\\<servername\sharename\user.pst> -IncludeFolders “#Inbox#”

For exporting the messages that contain the words “company” and “profit” on the body of the message for user admin received before January 1, 2011 use the following command:

New-mailboxexportRequest –Mailbox Admin –ContentFilter {(body –like “*company*”) –and {body –like “*profit*”) –and (Received –lt “01/01/2011”)} –FilePath “\\<Servername>\PSTFileShare\Admin_CompanyProfits.pst”

These and many other examples of using this cmdlet can be found on the following Technet page or by using Get-Help New-MailboxExportRequest -Full

Bulk Export of Mailboxes

In a lot of cases you will probably want to export all the mailboxes at once to PST. In order to do this you can run the following command to export all mailboxes to a pre-created share named "PST":

$Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst}


Importing Data from a PST File to Mailbox

Importing a PST file to a mailbox is very similar to the way you export mailbox to a PST file. You need to use the following command

New-MailboxImportRequest –Mailbox Admin –FilePath \\<Servername>\PSTFileShare\Admin.pst 



Note: if you already have some data in the mailbox to which you are importing then the above command will merge the data with it.

To see the whether the Import has been completed you need to run the following command



If you want to Import the PST file into a specified folder under the mailbox then we can use the following command with a –TargetRootFolder parameter which will create a specific folder and import all the data into it.

New-MailboxImportRequest –Mailbox Admin –FilePath “\\<server name>\PSTFileShare\admin.pst” -TargetRootFolder “RecoveredFiles”

Bulk Import of Mailboxes

Bulk Import also works very similar to the bulk Export. To import all of the PST files into their respective mailboxes run the following command:

$Import = get-mailbox; $Import|%{$_|New-MailboxImportRequest -FilePath "\\localhost\PST\$($_.alias).pst"}


*note: this also assumes that you originally exported the mailboxes using their alias as the pst file name.

Note: By Default, the import checks for the duplication of items and does not copy the data from the .pst file into the mailbox of matching items exists in the target mailbox.

Import and Export Request Statistics

With large mailboxes, the import and export requests may take a while to complete. If you need to view the status of an import or export request you can use the following commands (Test is the mailbox alias):

Get-MailboxExportRequestStatistics -Identity Test\MailboxExport


Get-MailboxImportRequest -Identity Test\MailboxImport

More examples and detailed information can be found on the technet links below:

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Really a very fantastic approach !
    In my work-station, due to not much familiar with PS usage, I use this automated application( to export/import mailbox items into PST format. This tool make my job much easier that provide the option to export or import only required mailbox items by selecting them as per need.

  • Thanks for sharing the helpful writes up !
    I just want to share a third party EDB to PST conversion tool to fix corrupted Exchange mailboxes and save them as .pst files:

    It's really very helpful when Export_Mailbox or other inbuilt utilities do not work. With the help of this advance utility, we successfully exported 15000+ mailboxes into .pst files easily !

    Hope it will be helpful to those who are in need.


  • However I tried Exchange mailbox import/export using software like , but seems there are few other ways too for the same. Harder to follow for a non techie Exchange user like me, but will check to verify whether it really works

  • Exchange EDB to PST export software conveniently extract all Exchange emails and folders with complete database from inaccessible Exchange server for Exchange EDB conversion into PST file format. MS Exchange EDB file converter program is capable to remove errors or bugs from EDB file successfully and switch EDB to PST with whole Exchange mailbox data.

    Read More

  • Exchange Server Recovery Software is a excellent set of features which can easily help to recover corrupt Exchange EDB to Outlook PST file without facing any obstacles.


  • Thanks for sharing such a great information regarding Exchange server. When I faced the situation of corrupt EDB File , then Microsoft EDB to PST Conversion Tool helps me and repair corrupt EDB & convert it into PST format. Visit the link for complete info:

  • Exchange EDB to PST converter software is available to repair Exchange EDB file & Exchange convert EDB to PST to read Exchange database completely. This software is proficient for repairing damaged Exchange EDB file & export Exchange EDB to PST file with whole emails and its related properties. It works on all EDB file version.
    Read More:-

  • Most affordable and successive Extract Exchange EDB to PST software has good potential to rectify corruption or bugs of Exchange EDB file to completely extract Exchange mailbox data from EDB file into PST file. This Export EDB to PST tool serves simple and secure path to import and export Exchange mailbox data into new workable PST file without any harm.

    For More Info :

  • Exchange edb to pst converter software is most effective and capable application that easily convert edb to pst format. Export corrupt exchange edb to usable outlook pst format by this tool.

  • An advance and effective third party edb to pst converter tool can easily convert edb to outlook pst format with email metadata such as To, From, Cc, Bcc and Subject. To know more detail

  • Highly advance EDB to PST Converter which is most powerful software for recovery your corrupt EDB file data. It safely recovers all data from Exchange EDB file and convert EDB to PST with all such individual folders-inbox, outbox, journals, contacts, tasks, notes, calendars, sent items etc.

    So download:

  • EDB to PST Converter is perfect solution for convert and recover edb file to pst file. It performs email conversion in a very safe mode, i.e. without causing any harm to the selected files.

  • EDB to PST converter tool is an advance tool thorough which user can easily repair and recover corrupt or unusable EDB file from MS exchange server and convert EDB file to PST file. It quickly migrate Exchange mailbox to PST, EML, MSG, Text, RTF and HTML file format. EDB file conversion software smoothly access your EDB file and restore every data from EDB file to PST file without making any changes.

    Read more:

  • Get this efficient Exchange EDB to PST conversion tool which has good potential to recover damaged Exchange EDB file into healthy PST file with all emails Meta data in well structure. It has excellent and successive path to appropriately convert EDB to PST file without any harm Exchange attachments.


  • Highly advance EDB to PST Converter which is most powerful software for recovery your corrupt EDB file data. It safely recovers all data from Exchange EDB file and convert EDB to PST with all such individual folders-inbox, outbox, journals, contacts, tasks, notes, calendars, sent items etc.

    So download :-