• Home
  • Topics
    • Office 365
    • Teams
    • SharePoint Online
    • Exchange 2019
    • Exchange 2016
    • Exchange 2013
    • Hybrid
    • Certificates
    • PowerShell
    • Migration
    • Security
    • Azure
  • Blog
  • Podcast
  • Webinars
  • Books
  • About
  • Videos
    • Interview Videos
    • How To Guide Videos
  • Subscribe
    • Facebook
    • Twitter
    • RSS
    • YouTube

Practical 365

You are here: Home / Exchange Server / How to Export Mailboxes with Exchange Server 2010 SP1

How to Export Mailboxes with Exchange Server 2010 SP1

March 15, 2011 by Paul Cunningham 192 Comments

Exchange Server 2010 Service Pack 1 introduced a new method for exporting mailboxes called Mailbox Export Requests.  This new method replaces the previous Export-Mailbox command.

Before we look at how to create a new mailbox export request in Exchange 2010 SP1 there are a few things that you should understand.

Firstly, no accounts are granted the rights to export mailboxes by default.  You need to explicitly grant these rights, even to accounts that are organization administrators.

Secondly, the mailbox export request is processed by the Client Access server role.  Because multiple Client Access servers can exist in a site the request could be processed by any one of them.  To ensure that the path to the export PST file is valid for any Client Access server it has to be a UNC path to network share, not a local path.

Table of Contents

  • Granting User Rights for Mailbox Exports in Exchange 2010 SP1
  • Creating a Network Share for Mailbox Exports in Exchange 2010 SP1
  • Exporting a Mailbox with an Exchange Server SP1 Mailbox Export Request
  • Exporting an Archive Mailbox with Exchange Server SP1 Mailbox Export Request
  • Completing the Mailbox Export Request

Granting User Rights for Mailbox Exports in Exchange 2010 SP1

The first step is to grant the right to export mailboxes to an account in your organization.  In the Exchange Management Shell run the following command.

1
New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator


If you’re logged with that user already simply restart your Exchange Management Shell session to be granted access to the new cmdlets.

Creating a Network Share for Mailbox Exports in Exchange 2010 SP1

Next we need to create the network share that will be used as the file path for the exported PST files.  All that is required here is a network share that the Exchange Trusted Subsystem group has read/write permission to.

How to Export Mailboxes with Exchange Server 2010 SP1

Exporting a Mailbox with an Exchange Server SP1 Mailbox Export Request

With everything configured properly we can now use New-MailboxExportRequest to start the mailbox export.  The only two required parameters for the command are the file path to the export PST file, and the name of the mailbox to export.

1
2
3
4
5
[PS] C:\>New-MailboxExportRequest -Mailbox alan.reid -FilePath \esp-ho-ex2010apstalan.reid.pst
 
Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... Queued


To view the status of the request use the Get-MailboxExportRequest cmdlet.

1
2
3
4
5
[PS] C:\>Get-MailboxExportRequest
 
Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... InProgress


You can also see more detail about the mailbox export request with Get-MailboxExportRequest.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[PS] C:\>Get-MailboxExportRequest -Name MailboxExport | fl
 
RunspaceId     : c48a9069-e572-4c65-80ea-773e61e5337e
FilePath       : \esp-ho-ex2010apstalan.reid.pst
SourceDatabase : MB-HO-01
Mailbox        : exchangeserverpro.net/Company/Users/Head Office/Alan.Reid
Name           : MailboxExport
RequestGuid    : 9de3a722-0c82-4e34-98bf-0ff624c47c16
RequestQueue   : MB-HO-01
Flags          : IntraOrg, Push
BatchName      :
Status         : InProgress
Protect        : False
Suspend        : False
Direction      : Push
RequestStyle   : IntraOrg
OrganizationId :
Identity       : exchangeserverpro.net/Company/Users/Head Office/Alan.ReidMailboxExport
IsValid        : True


An easy way to see the progress of all mailbox export requests is to pipe Get-MailboxExportRequest into the Get-MailboxExportRequestStatistics cmdlet.

1
2
3
4
5
[PS] C:\>Get-MailboxExportRequest | Get-MailboxExportRequestStatistics
 
Name                                   Status                    SourceAlias                           PercentComplete
----                                   ------                    -----------                           ---------------
MailboxExport                          InProgress                Alan.Reid                             20

Exporting an Archive Mailbox with Exchange Server SP1 Mailbox Export Request

You can also export a user’s Personal Archive using mailbox export requests simply by adding the -IsArchive parameter to the command.

1
[PS] C:\>New-MailboxExportRequest -Mailbox alan.reid -FilePath \esp-ho-ex2010apstalan.reid.pst -IsArchive

Completing the Mailbox Export Request

When a mailbox export request is completed it remains on the server until it is removed by an administrator using Remove-MailboxExportRequest.

To see all of the completed mailbox export requests run this command.

1
2
3
4
5
[PS] C:\>Get-MailboxExportRequest | where {$_.status -eq "Completed"}
 
Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... Completed


And to clear all completed mailbox export requests from Exchange run the following command.

1
[PS] C:\>Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest

Exchange Server Client Access, EMS, Exchange 2010, Exchange Management Shell, Export, Mailbox, PowerShell, PST

Comments

  1. francesco says

    August 10, 2018 at 5:57 pm

    hi,

    is possible to export pst with the email address an not with the uid of the organization? i migrating in a new server

    for example

    IMCEAEX-_O=FIRST+20ORGANIZATION_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=Centralinoc78@domain.local
    #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found

    i want the message exported as xxxx@domain.extension

    thank you

    Reply
  2. mushfiqul says

    May 27, 2018 at 1:37 pm

    Dear Paul Cunningham Sir,
    I have an exchange 2016 environment in where I have added 5 UPN suffixes. Now I want to separate CEP according to domain so that admin of a domain can see his own domain users and groups. I have tried it using RBAC write scope based on OU but when admin login his ecp, he can see all users and groups. How is it possible to separate that ? Please help me.

    Reply
  3. Georgia Jaeger says

    April 13, 2018 at 3:06 am

    Thanks for the posting. Your instructions worked very well for me.

    GJ

    Reply
  4. Jim Satterfield says

    January 19, 2018 at 2:17 am

    When I use the ContentFilter setting to export only emails from the last week or so does it capture all changes like messages being moved to a different folder or new folders from that date range?

    Reply
    • Paul Cunningham says

      January 19, 2018 at 11:40 am

      I don’t really understand your question, but it sounds like something you could pretty quickly test.

      Reply
  5. Jim Blunt says

    November 3, 2017 at 6:18 am

    Actually, let ME clarify a little bit. The first site listed above believes that the “-MRSServer” switch will let you specify a particular CAS server to use for a mailbox export request.

    The TechNet site doesn’t list that switch in the available switches for that command.

    What I’m looking for, is a way to specify which server(s) NOT to use.

    Thanks again,

    Jim

    Reply
    • Paul Cunningham says

      November 3, 2017 at 8:31 am

      That switch is not available for Exchange 2016, which is the only version I have available to check. AFAIK there’s no way to specify or exclude a server from processing an export request.

      Reply
  6. Jim Blunt says

    November 3, 2017 at 6:11 am

    Hey Paul…I have a question.

    I’m trying to exclude one or two CAS servers from a Mailbox Export Request.

    This site:
    https://social.technet.microsoft.com/Forums/exchange/en-US/30404f93-3000-40bf-be25-6e09d1f04f85/how-to-use-specific-client-access-server-for-export-import-mailbox-pst-operation-tasks?forum=exchange2010
    seems to believe it’s possible with the use of this switch “-MRSServer ” to accomplish this.

    However, this site:
    https://technet.microsoft.com/en-us/library/ff607299(v=exchg.160).aspx
    doesn’t make any mention of that switch.

    Can you clarify and tell me if there is any way to do what I am asking?

    Thanks in advance,

    Jim

    Reply
  7. Gerard says

    August 13, 2017 at 8:54 pm

    Many people seem to find it difficult to schedule the export mailbox task.
    I did all the stuff i found as a tip several sites ( executionpolicy, new-mgmt role assignment, run the command directly from the commandline etc).

    The taskscheduler says it executed suc6fully, but no files appear in my folders, however when executing the export from the exchange mngmt shell it does work perfectly.
    So i still have trouble getting this automated, do you have a good walkthrough on to get the mailbox export in a scheduled task ?

    Kind Regards
    Gerard

    Reply
    • Paul Cunningham says

      August 14, 2017 at 10:24 am

      What is the scenario you’re looking at? What are you trying to achieve? Running PowerShell commands as a scheduled task is simple enough but perhaps there’s something about your situation that isn’t obvious to me.

      Reply
  8. Ozz says

    August 11, 2017 at 6:41 am

    First of all thanks for the command and all the details posted.
    1- I have a number of failed as well as a number of completed mailboxes. Somewhere along the way here I read about the -BadItemLimit parameter but have not been able to figure out how to use it.

    2- for the people having issues with error ‘Couldn’t connect to the source mailbox.’
    I have successfully managed to connect to the mailbox on OWA and that allowed me to continue the export.

    Reply
  9. bonesleon says

    May 23, 2017 at 2:22 pm

    Paul!

    So.. I followed these instructions because I thought it would be better to export a pst for a user and then upload it to office 365 instead of just giving myself full permissions and doing it via outlook… clearly didn’t think it through. Especially since it was a small mailbox.

    Long story short, I granted myself the ManagementAssignmentRole to export the pst… and I would like to remove it. I figured I should do the following so i used a -whatIf

    Get-ManagementRoleAssignment -RoleAssignee myself -Role “Mailbox Import Export” | Remove-ManagementRoleAssignment -WhatIf

    and it threw red stating the import export org management delegating management role assignment can’t be disabled or remove from the org management management role group because doing so would prevent the entire org from managing the mailbox import export management role…

    So my question is…. how do I remove the assignment from myself without breaking permissions for others? When I ran

    Get-ManagementRoleAssignment -Role “Mailbox Import Export” | fl RoleAssigneeName

    it returned two instances of Org Management and one Security group… and then of course… myself -____- (I’m the last in the list)

    How big of a boo boo is this? Please help!

    Reply
    • Paul Cunningham says

      May 23, 2017 at 2:38 pm

      Don’t do it as a pipeline command. Just use Remove-ManagementRoleAssignment with the appropriate parameters (refer to TechNet doco) without piping the Get- command into it.

      Reply
  10. Chenny says

    February 9, 2017 at 6:20 pm

    Great post!

    Reply
  11. tC tHE tECH says

    January 17, 2017 at 2:35 am

    Thank you very much for this guide!

    Reply
  12. Joseph says

    November 24, 2016 at 7:49 pm

    Hello,
    I recently restored a server which hosted the AD and exchange… The exchange files were all on a separate drive (D). I backed up the D drive as is before doing the full restore of the system. On full restore, I have a server with exchange database that has mails dating up to the time I ran the backup. My question is, how can I read from the D drive backup which holds the latest emails instead of the recovered D drive that has old mails. I am using exch2010sp1. Thanks

    Reply
    • Paul Cunningham says

      November 25, 2016 at 8:56 am

      If you have a copy of a mailbox database that you’ve restored from backup you can mount it as a recovery database to restore data from it.

      Reply
  13. Hans says

    November 10, 2016 at 5:45 pm

    Hi Everyone

    I am trying to shrink a couple of really large exchange mailboxes using the New-MailboxExportRequest with a content filter and a date range. From what i understand this command only makes a copy of the mailbox items to a pst file. Is there a switch or something to specify that the mail should be moved and not copied or some totally different command to do this? i don’t want to use outlook archiving.

    thanks.

    Reply
  14. Huseyn says

    October 26, 2016 at 12:51 am

    Perfect! Thank you for your helpful article

    Reply
  15. Ali says

    June 23, 2016 at 2:19 am

    Hi,

    Thank you so much for the perfect and useful post,
    I’m trying to export part of the mailboxes based on the date, it finishes successfully but when i mount the PST file i figure out that many emails are missing specially when they are in folders.
    This is a script i use:

    New-MailboxExportRequest -ContentFilter {(Received -lt ’01/01/2014′) -and (Received -gt ’01/01/1900′)} -Mailbox “username” -Name usertopst -FilePath \xxxxxxxx

    Reply
  16. Gavin says

    May 13, 2016 at 11:05 am

    This doesn’t work if you are using any other regional date format than the US format. In other words, this information is only useful in the US. I have tested this. I have tried setting the computer region to US and it still doesn’t work. It is probably to do with the internally stored date format. It surprises me that Microsoft don’t use ISO date format for all data storage. I have found this before with T-SQL, so it doesn’t surprise me.

    Reply
  17. Gavin says

    May 9, 2016 at 7:15 am

    Hi Paul,

    Thanks for the great information. I have a particular request. I have a client that wants to archive email older than 2015. So, export to .PST and then remove the older emails from their current mailboxes in Exchange 2010. (SBS 2011). With 14 mailboxes, I could probably just go around each machine, but it would be nicer to use a powershell command to do this. What you have supplied and other information that I have would do the export nicely. The part that I have a question with is removing the older emails from the existing mailboxes. Any ideas?

    Reply
  18. Stome007 says

    January 4, 2016 at 4:48 pm

    Dear Pual,

    Suppose my old database mailbox (ex: Finance Database) got a big size. All user using MS Outlook download to their local computer already. My question is how to clean database mailbox or have another way to export only user in the old database then import to new database mailbox that we just create please?

    Regard,
    Stome007

    Reply
    • Paul Cunningham says

      January 4, 2016 at 8:32 pm

      I’m not sure I understand your situation. If you want to move mailboxes from one database to another you just use mailbox move requests. You don’t need to export and import them.

      Reply
      • Stome007 says

        January 6, 2016 at 12:12 pm

        Dear Paul,

        Yes, we can move mailboxes to another database but it along with also attachment and mail data, so in this case our new database will remain a big size. My purpose is just want move only user information not data or attachment file in the user mailbox.

        Thanks

        Reply
        • Paul Cunningham says

          January 6, 2016 at 12:39 pm

          I think you’re misunderstanding the situation then. User information (attributes such as name, email address, etc) are stored in Active Directory.

          The Exchange database stores the mailbox items. There’s no moving of “user information” to another database.

          Reply
          • Stome007 says

            January 6, 2016 at 2:12 pm

            Dear Paul,

            Thanks for your reply and well noted.

  19. veljko grubacic says

    December 21, 2015 at 5:05 pm

    Very nice explained. Thanks Paul

    Reply
  20. Rohit Ghosalkar says

    October 27, 2015 at 8:43 pm

    Hi Paul,

    Can we export data from Mailbox to Mailbox , like below command used in Exchange 2007

    Export-Mailbox -Identity movemailbox1@springer.com -TargetMailbox movemailbox2@springer.com

    Reply
  21. Dariusvw says

    October 7, 2015 at 5:22 pm

    Hi Paul

    I am looking for a way to move all the mail from user 1’s account to user 2’s account.
    User 1 has left the Organisation, but was part way through organizing a few events.

    We are using Exchange 2014 Version 14.02.0387.000
    Even if all you can do is point me in the right direction as to what the process/command is called.

    Thanks

    Reply
    • Dariusvw says

      October 7, 2015 at 5:22 pm

      That is supposed to read as Exchange 2010.
      sorry

      Reply
    • Paul Cunningham says

      October 7, 2015 at 9:36 pm

      I would just grant User2 full mailbox access for User1 so they can handle any correspondence that continues to be received.

      Reply
  22. Christian Beauregard says

    August 21, 2015 at 10:56 pm

    I Know this is an old post but seems like one thing was missing from this and it’s user permission.

    you cannot grant yourself the “Mailbox export import role” through powershell (did not work for me) but you can add it to your AD account + the share needs to have the Exchange trusted subsystem.

    Only then will this command works flawlessly

    Reply
    • Paul Cunningham says

      August 22, 2015 at 7:40 am

      You can grant yourself the permissions, or if you don’t have high enough privileges in the Exchange org to do it then another admin who does can do it for you.

      The permissions on the file share is covered in the article already.

      Reply
  23. Chris Bergman says

    July 7, 2015 at 2:05 am

    Hi Paul,

    Excellent article. This was very helpful with pulling mailboxes of terminated users for archive purposes.

    Reply
  24. Adrian Farrugia says

    May 18, 2015 at 6:15 pm

    Hi,

    Does this command backup the contacts and calender as well?
    New-MailboxExportRequest -Mailbox ‘xxxxx’ -FilePath ‘D:backupxxxx.pst’

    Thanks.

    Reply
    • Paul Cunningham says

      May 18, 2015 at 8:22 pm

      Have you tried it yourself yet?

      Reply
  25. justin says

    April 10, 2015 at 1:59 am

    Hi there

    I was wanting to export an entire mail database, your excellent tutorial only mentions how to do single mailboxes, could I ask you share how to export all mailboxes from a specific mail database .

    thanks

    Reply
  26. Jorel says

    February 28, 2015 at 8:02 am

    Paul,

    Thanks for your help! I found out that there were corrupt items within the mailbox and added the -BadItemLimit parameter to the syntax I was using.

    Really appreciate your time to read and reply.

    Have a great day!

    Reply
  27. Jorel says

    February 27, 2015 at 6:26 pm

    I am able to execute the mailboxexportrequest and the status is “In Progress” until the pst file reaches around 2GB, it then stops and the status turns to “Failed”. I’d like to know if there’s a way I’d be able to see what may be causing the process to stop.

    here is the command that I am using and have worked for all the rest of my exports:

    New-MailboxExportRequest -Name “Jorel” -Mailbox JSV -FilePath “\servershare$Jorel_export.pst”

    Thank you,

    Reply
    • Paul Cunningham says

      February 27, 2015 at 7:16 pm

      Use Get-MailboxExportRequestStatistics to look for more information.

      Reply
  28. Craig says

    February 27, 2015 at 1:21 am

    Thank you Paul for this write up. It was easy to follow and worked great.

    Reply
  29. Prineel says

    February 10, 2015 at 7:59 pm

    Worked great, excellent tutorial!

    Reply
  30. Obi Ejiofor says

    December 5, 2014 at 6:06 pm

    Can you export psts from a dismounted database ?

    Reply
    • Paul Cunningham says

      December 8, 2014 at 1:14 pm

      No.

      Reply
  31. John says

    December 5, 2014 at 8:29 am

    Paul – Quick question. If the PST are large like 10gb or more.. that is OK right? I am trying to answer the question if the PST’s are larger than 2Gb will they be 100% working PST files that you can open in outlook 2007 or newer versions of outlook. I see all kinds of articles saying you need 64 bit version of Outlook installed on a PC with power shell and only if exported from that machine are those PST’s good if larger then 2gb.

    Reply
    • Paul Cunningham says

      December 8, 2014 at 1:14 pm

      You don’t need Outlook installed. I’ve exported large mailboxes to PST (10-15Gb) and not had issues opening them.

      Reply
  32. Adriano Mendes says

    December 1, 2014 at 11:01 pm

    Paul,

    Good morning! I Googled you page and I think you could help me a bit. I’m trying to create a batch file to:
    1-export the PST file from Exchange server
    2-return when the export is finished
    3-create a folder
    4-move the PST file to this folder

    So I created a batch file called EXP_PST.BAT. If I type inside powershell this command, it runs fine but it seems that I can’t run a .BAT inside Exchange Power Shell. How do I do that?

    This is the batch file:
    @echo off
    @echo Exporting user PST
    New-MailboxExportRequest -Mailbox %1% -FilePath \W2K8AMERMAIL1EXP_PST%1%.pst
    Get-MailboxExportRequest | Get-MailboxExportRequestStatistics
    pause
    @echo Creating user folder…
    md \csmrionetapp2datatiUser_Backup%1%
    @echo Moving PST file to folder…
    move \W2K8AMERMAIL1EXP_PST%1%.pst \csmrionetapp2datatiUser_Backup%1%%1%.pst
    @echo Exportation finished !

    I’m receiving some errors like:
    The term ‘exp_pst.bat’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:12
    + exp_pst.bat <<<<
    + CategoryInfo : ObjectNotFound: (exp_pst.bat:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    Reply
    • Paul Cunningham says

      December 2, 2014 at 1:30 pm

      PowerShell scripts have a .ps1 extension, not .bat.

      You’ve jumbled in bat/cmd command and PowerShell commands there, that won’t work. If you want to run the whole thing as a PowerShell script you’ll just need to research the PowerShell commands to replace the bat/cmd commands there, eg md, pause, echo.

      Reply
      • Adriano Mendes says

        December 4, 2014 at 11:13 pm

        Thanks Paul!!! 🙂

        Reply
  33. jon miller says

    October 29, 2014 at 11:01 am

    I have multiple databases and I want to export a mailbox for a single user in another database.
    by default new-mailboxexportrequest uses the main database (Mailbox Database 2098600682) , however there are 2 other databases (Mailbox DFMail & Mailbox Database FMail 2).
    All I want to do is export a mailbox from “Mailbox Database FMail 2”.

    How would I construct this? Using the parameter -database “Mailbox Database FMail 2” does not work.

    Thanks…

    Reply
    • Paul Cunningham says

      October 29, 2014 at 7:14 pm

      Mailbox export requests target mailboxes, not databases. Look at the examples in the article, they show examples of exporting a mailbox.

      Reply
  34. Roxanne says

    October 3, 2014 at 1:52 am

    Hi Paul, thank you for the excellent and informative post. Your articles have helped me a zillion times already.

    I just wanted to mention that, to filter requests by status, I used simply:

    Get-MailboxExportRequest -Status Queued

    and it worked fine.

    Reply
  35. Prabhat says

    September 18, 2014 at 11:05 pm

    Is there any Emerge command to backup and restore.

    Reply
  36. Prabhat says

    September 18, 2014 at 11:01 pm

    I want to export all mailboxes in PST files upto specified end date.

    Can you help into this with command line!

    Reply
    • Paul Cunningham says

      September 20, 2014 at 7:55 am

      Look at the ContentFilter switch for New-MailboxExportRequest, in particular look at Example 3 on TechNet:

      http://technet.microsoft.com/en-us/library/ff607299.aspx

      Reply
  37. Harry says

    July 2, 2014 at 3:09 am

    foreach ($i in (Get-Mailbox -database TSXLABMBX1-DB1)) {New-MailboxExportRequest -Mailbox $i -ContentFilter ((Received -lt “04/15/2014″ -or (Sent -lt “04/15/2014″)) -FilePath “\tsxlabmbx-2pst$($i.Alias).pst” }
    You must provide a value expression on the right-hand side of the ‘-f’ operator.
    At line:1 char:169
    + foreach ($i in (Get-Mailbox -database TSXLABMBX1-DB1)) {New-MailboxExportRequest -Mailbox $i -ContentFilter ((Receive
    d -lt “04/15/2014″ -or (Sent -lt “04/15/2014″)) -F <<<

    Did I miss any thing?

    note: if I removed -ContentFilter ((Received -lt “04/15/2014″ -or (Sent -lt “04/15/2014″))

    it works fine. however, I do need end date but no start data

    Reply
  38. Harry says

    July 2, 2014 at 3:08 am

    Hi Paul, thanks for great. I tried to extract all mailboxes on particular DB to pst files. here is cmdlet I used and got following errors:

    [PS] C:Windowssystem32>foreach ($i in (Get-Mailbox -database TSXLABMBX1-DB1)) {New-MailboxExportRequest -Mailbox $i -C
    ontentFilter ((Received -lt “04/15/2014” -or (Sent -lt “04/15/2014”)) -FilePath “\tsxlabmbx-2pst$($i.Alias).pst” }
    You must provide a value expression on the right-hand side of the ‘-f’ operator.
    At line:1 char:169
    + foreach ($i in (Get-Mailbox -database TSXLABMBX1-DB1)) {New-MailboxExportRequest -Mailbox $i -ContentFilter ((Receive
    d -lt “04/15/2014” -or (Sent -lt “04/15/2014”)) -F <<<

    Did I miss any thing?

    note: if I removed -ContentFilter ((Received -lt “04/15/2014” -or (Sent -lt “04/15/2014”))

    it works fine. however, I do need end date but no start data

    Reply
    • Paul Cunningham says

      July 2, 2014 at 8:06 am

      Looks like you haven’t closed parentheses properly on the content filter conditions.

      Reply
  39. Chadd M says

    May 20, 2014 at 6:36 am

    Great write up, it was very clear and helpful. Thank you.

    Reply
  40. Efrain says

    May 10, 2014 at 9:07 pm

    Hi Paul!
    great article!
    I need to delete mails from the sent items on a specific mailbox on a date range. do you know of a way how?
    In Exchange 2007 there was an Export-Mailbox command and had the start date end date parameters but that doesn’t seem to work with 2010.

    Any pointers will be appreciated.

    Cheers!

    Reply
  41. Patrik J says

    April 29, 2014 at 11:32 pm

    Hi Exchange pro 🙂
    Senario.
    We deleted mailbox. Created a new mailbox with same name. Now we need to export the deleted mailbox to a pst file.
    When I run New-MailboxExportRequest -Mailbox “USER” -FilePath \exch1ExchangeExportPSTUSER.pst Exchange export the new mailbox. How do I export the deleted mailbox? I can see the old mailbox when I run Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason

    /PJ

    Reply
    • Paul Cunningham says

      April 30, 2014 at 12:45 pm

      You will need to reconnect the disconnected mailbox first.

      https://www.practical365.com/reconnect-disconnected-mailbox-exchange-server-2010/

      Reply
      • Patrik J says

        May 2, 2014 at 9:41 pm

        Hi
        Thanks it worked! 🙂

        Reply
  42. Tony E. says

    April 25, 2014 at 2:35 am

    I wanted to see if someone could clarify a question I have. When running the New-MailboxExportRequest does this only create a copy of the person’s mailbox or does this in fact move the items to the PST file. I did notice that the TechNet page mentions being able to run multiple instances on the same inbox so I believe it is the first (copy of mail.) Just don’t want to assume. “Assumptions the mother of all evil.

    Second questions how can I use this command to parse and only give me items larger than 34MB and not the whole mailbox. hope someone can help.

    Reply
    • Paul Cunningham says

      April 25, 2014 at 4:14 pm

      It copies the items, doesn’t remove them from the mailbox.

      You can use -ContentFilter to specify a variety of criteria for the exported items. More info here:
      http://technet.microsoft.com/en-us/library/ff601762(v=exchg.141).aspx

      Reply
  43. Zacks says

    February 25, 2014 at 7:16 pm

    HI Paul,
    I have executed the export command successfully, but if i check the status it stays on queued. Is the any way to force it to start?

    Reply
    • Paul Cunningham says

      February 25, 2014 at 8:17 pm

      The process will run when the workload on the server permits it to run. If your server is under heavy load it will take longer to run.

      Reply
  44. Kadir OZTURK says

    February 20, 2014 at 8:24 pm

    hi, first between two dates determined by the archives of emails from pst how do you get as the second question is.. if I took out the emails from the edb file, how do I delete it ? can you help ? thanks

    Reply
  45. Michele says

    February 19, 2014 at 1:51 am

    Hi Paul,

    using New-MailboxExportRequest is it possible to export from a 50GB mailbox
    multiple .pst divided by MaxSize (Ex: MaxSize 1,2GB / Alias1.pst, Alias2.pst, etc..) ?

    thank you very much

    Reply
    • Paul Cunningham says

      February 19, 2014 at 9:47 am

      There is no MaxSize or similar parameter for New-MailboxExportRequest.

      http://technet.microsoft.com/en-us/library/ff607299(v=exchg.150).aspx

      Reply
  46. keith says

    January 23, 2014 at 11:55 pm

    Hi

    I am familiar with mailbox export but not sure how you allow mailbox export for specific OU to a user ?

    Regards

    Reply
    • Paul Cunningham says

      January 26, 2014 at 11:29 am

      You can likely do it using RBAC and a custom management role but I don’t have an example for that scenario.

      Reply
  47. Fabio says

    January 3, 2014 at 8:24 pm

    Hello Paul,
    I executed following command:

    “New-MailboxExportRequest -Mailbox user-FilePath \localhostexportpstuser_mailbox.pst”

    The export worked fine.

    I deleted the pst created with the command and I ran “Get-MailboxExportRequest | remove-mailboxExportReques”. The command deleted all tasks and now I don’t have nothing in “Get-MailboxExportRequest”.

    If I try to export again the same mailbox the command does’t start the task and Get-MailboxExportRequest” is empty. If I try to export another maibox, all works fine.

    How I can export again the same mailbox?

    Thanks

    Reply
  48. Mark says

    December 13, 2013 at 2:49 am

    I exported a mailbox following this guide and afterwards found the mailbox was disconnected due a “soft delete”

    Is this expected behavior?

    Reply
    • Paul Cunningham says

      December 13, 2013 at 6:01 pm

      No, not in my experience.

      Reply
  49. MarioTunes says

    October 18, 2013 at 2:33 am

    Hi Paul,

    Great Post!

    Do you know if it possible to migrate particular Exchange 2010 SP2 DB to the multiple PST files (each file named based on alias)?

    Thank you

    Reply
    • MarioTunes says

      October 18, 2013 at 2:35 am

      Probably that should work

      Get-Mailbox -Database “Database1″ -ResultSize Unlimited | Export-Mailbox -PstFolderPath C:UserPST

      Reply
      • MarioTunes says

        October 18, 2013 at 2:44 am

        Or the following script

        $mailboxes = get-mailbox -Database “Database1″ -ResultSize Unlimited

        foreach ($mailbox in $mailboxes) {

        new-mailboxexportrequest -mailbox $mailbox -FilePath \serverc$$mailbox.pst

        }

        Reply
  50. Lance says

    July 12, 2013 at 1:08 am

    Great article..What is the parameter if you want to move the data into the pst. in Excahnge 2007 it used to be by adding the switch -deleteContent, but that does not seem to work.

    thanks
    Any help is appreciated

    Reply
  51. Rob says

    June 20, 2013 at 4:55 am

    I had Exchange 2010 with SP1, but no other updates installed. The New-ExportMailboxRequest command was an unknown command. Added Update Rollup 8 and all was good.

    This export works fast – a great time-saver.

    Thanks for this.

    Reply
  52. Russel says

    May 7, 2013 at 12:14 am

    Thank you for your time on this post and it works great, but I have a question and possible addition to this.

    I have about 450 users to Export to PST and was wondering if there is a way to use a wildcard in the command so I can Export all of the users in a particular DB. I have already moved all the users to DB and after I get all these users exported to PST and backed up I will be removing the DB. Doing it one at a time will take FOREVER.

    Thank you again for your time and help.

    Reply
  53. MERAJ says

    May 3, 2013 at 4:55 pm

    Thanks for your post it was very helpful.

    Thank you
    Meraj

    Reply
  54. Kevin O'Brien says

    April 27, 2013 at 2:30 am

    Hey Paul,

    I just wanted to say thanks for posting this information. It worked perfectly.

    Thank you,
    Kevin

    Reply
  55. Craig says

    April 20, 2013 at 3:35 pm

    Paul, thank you for sharing your time as well as your vast knowledge and expertise with the IT community … really very helpful!

    I have an issue that I could use a little guidance on if you have the time; A few months back we setup a second forest and migrated some resources and companies from the parent forest to the new forest. We setup a separate Exchange 2010 organization … all is good (except for the obvious challenges and complexity). We were able to successfully use ADMT and Move requests etc to get our Exch 2007 mailboxes to 2010 then cross forest to the root domain containing Exch, then from there to another domain in the new forest. Changed the moved domains to InternalRelays and no problems.

    However, now I have a user who for whatever reason needs to xfer back to the parent (original) company in the old forest … and my Moverequests aren’t working. In fact I prepared the mailbox for move and just couldn’t get the remote (original) domain/forest to recognize the user’s mailbox guid. So I decided to just Export to PST and Import … but now it appears as though I might have messed things up with the Prep.

    When I follow your directions on the new forest’s Exch 2010 SP1 Server I am hit with the following error:
    ** actual user, server, and domain names have been substituted with canned text **

    The operation couldn’t be performed because object ‘username@domainB.dom’ couldn’t be found on ‘Exchange-Server’s-DC.domainA.dom’.
    + CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 6C8BC43A,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName : Exchange-Server.domainA.dom

    ** as for the substituted domain names:

    DomainA = domain in new forest where the new Exchange 2010 Org lives
    DomainB = domain in new forest where the new user lives … mailboxes are specified by UPN
    DomainC = (not listed above) domain in original forest where I was trying to move the mailbox and gave up.

    If you can offer any suggestions on how to un-Bork the “prepared” mailbox so that I can export it to PST, that would super awesome! Thanks a ton.

    Reply
    • Craig says

      April 20, 2013 at 5:09 pm

      As a follow up,

      I attempted to substitute the user’s mailbox name with the actual AD path as well (tried both UPN and Alias) with no luck:

      ** ran the following on the new forest’s Exchange 2010 SP1 server **

      New-MailboxExportRequest -Mailbox “cn=username,ou=usersOU,ou=childOU,ou=toplvlOU,dc=DomainB,dc=
      dom” -FilePath \Exchange-Server.domainA.domshare

      The requested search root ‘DomainB.dom/toplvlOU/childOU/usersOU’ is not within the scope of this operation. Cannot perform searches outside the scope ‘DomainA.dom’.
      + CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], ADOperationException
      + FullyQualifiedErrorId : 7E09615E,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
      + PSComputerName : Exchange-Server.domainA.dom

      Thanks again …

      Reply
      • Craig says

        April 20, 2013 at 5:55 pm

        I just connected to the user’s mailbox with an Outlook client after granting myself permissions to the mailbox and exported the contents to a PST.

        it’s crude, probably not the best way, but it gave me what I needed.

        I’m still interested in knowing if there is anything that I could have done to PST the mailbox via PowerShell … at this point, looking at the errors it appears to me that I have to first create a user in DomainA.dom, disconnect the mailbox from the user in DomainB.dom and associate it with the DomainA.dom user? If so then that’s “PureLameSauce” lol.

        Anyway, thanks.

        Reply
  56. Shawn says

    April 20, 2013 at 2:33 am

    I beleive the cmdlets posted here “New-MailboxExportRequest” and “Get-MailboxRequest” apply to Exchange 2013 and not Exchange 2010. I have to run Export-Mailbox in Exchange to perform the steps being outlined here. Just a heads up.

    Reply
    • Shawn says

      April 20, 2013 at 2:34 am

      To clarify, I have to run “Export-Mailbox” in Exchange 2010 to perform the steps outlined here.

      Reply
      • Andrew says

        April 20, 2013 at 8:16 am

        No, in Exchange 2007 you would use Export-Mailbox cmdlet (http://technet.microsoft.com/en-us/library/bb266964(v=exchg.80).aspx), however in Exchange 2010 you would us New-MailboxExportRequest.

        Reply
      • Paul Cunningham says

        April 20, 2013 at 2:32 pm

        This article opens with:

        “Exchange Server 2010 Service Pack 1 introduced a new method for exporting mailboxes called Mailbox Export Requests. This new method replaces the previous Export-Mailbox command.”

        To clarify, Export-Mailbox was in Exchange 2010 RTM. Exchange 2010 SP1 and above use the mailbox import/export request cmdlets instead.

        If you’re only able to use Export-Mailbox on your server that implies it is still the RTM version, which you should probably do something about as that version is no longer supported.

        Reply
        • Mike says

          January 13, 2015 at 1:05 am

          Sorry, but you are indeed incorrect. This is for 2013. I am running Exchange 2010 SP3 and Export-Mailbox is what works.

          Reply
  57. Andrew says

    April 17, 2013 at 4:41 pm

    You could write the last command like

    [PS] C:\>Get-MailboxExportRequest -Status “Completed” | Remove-MailboxExportRequest

    Reply
  58. Joe T says

    April 9, 2013 at 4:37 am

    Hi Everyone, wondering if someone could help me intrepret a Mailbox Export Request that was documented in the Exchange Management Log (transaction below). Trying to figure out if “administrator” performed a copy of their own mailbox and saved it to Joe.pst file, or if the log shows that administrator accessed the Joe mailbox and made a copy to Joe/pst. Any help much appreciated.

    Information 12/31/12 01.01 MSExchange CmdletLogs 1 General Cmdlet suceeded. Cmdlet New-MailboxExportRequest, parameters {Mailbox=administrator, FilePath=\mailserverE$ExmergeJoe.pst}.

    Reply
    • Jason Bedogne says

      April 9, 2013 at 6:06 am

      Not really an expert, but having exported out about 80 mailboxes now, it would appear that someone exported the Mailbox Administrator and saved it to a PST named Joe.

      The log that you left doesn’t show who did the exporting.

      Reply
      • Joe T says

        April 9, 2013 at 7:23 am

        Thanks much Jason!

        Reply
  59. Matt Vest says

    April 5, 2013 at 11:11 pm

    This is a great post, but I wanted to add one small caveat that I have encountered, and am curious if this is true for everyone or a peculiarity with this particular Exchange server that I am running. When running this command, both the mailbox and filepath have to be in quotes for the command to run successfully. Is that a requirement, and if not, any idea why it is requiring me to put the command in that syntax?

    Reply
    • Paul Cunningham says

      April 12, 2013 at 4:34 pm

      Any string such as the mailbox name of file path that has a space in it would need to be in quotes.

      Reply
  60. Dave Scott says

    March 27, 2013 at 5:48 am

    Why there isn’t an ExMerge equivalent for this version of Exchange is beyond me. All his crap for nothing. ExMerge was so reliable.

    Reply
  61. Joshua Thompson says

    March 22, 2013 at 2:41 am

    Is it possible to export to a PST and have that PST be password protected?

    Reply
  62. Jason Bedogne says

    March 12, 2013 at 8:06 am

    I have exported out 25+ mailboxes successfully, but I have two mailboxes that keep failing at 39 percent.

    Running Exchange Server 2010 with SP1.

    Any ideas?

    Reply
  63. Rezq says

    February 25, 2013 at 6:10 pm

    IS New-MailboxExportRequest working with exchange 2010 standard edition plz mr.Paul Cunningham tell me urgently

    Reply
    • Amnon says

      February 26, 2013 at 1:05 am

      Yes New-MailboxExportRequest works in Exchange 2010
      Try:
      New-MailboxExportRequest -?
      or
      get-help New-MailboxExportRequest -online
      see:
      http://technet.microsoft.com/EN-US/library/1625c25a-7cc9-459c-97ea-281ac421bbce(EXCHG.141).aspx

      Reply
  64. Lee Bergin says

    February 23, 2013 at 12:37 am

    Hi Paul

    I currently have 4 meeting room that we migrated from exchange 2003 to exchange 2010, they will only work if we have the direct booking registry key set in windows 7. Do you know if its possible to export the contents of the calendar and then delete the old room, recreate a new room of the same name and then import the calender and it keep the connections with appointments in end users calenders.

    I have checked all the settings against two new room that i setup and cannot find any differences.

    Thanks in advance for any advice or help you can offer

    Lee

    Reply
    • Paul Cunningham says

      February 23, 2013 at 5:22 am

      I haven’t encountered that issue with migrated mailboxes before. You’ve checked that they are converted to Room mailboxes correctly and have the calendar configured correctly for autoaccept?

      I don’t think exporting/importing the calenders will keep the “connections” with other invitees but frankly I have no tested that myself.

      Reply
  65. Amnon says

    February 13, 2013 at 12:18 am

    Unfortunately, I only have the disconnected mailbox, but the user account has already been deleted. You then get the error that the object couldn’t be foun on the DC… So no export to PST possible without the user account still available?
    Is an export still possible, having only the disconnected mailbox, without having to recreate a user account (SOx is in the way…)

    Reply
  66. Carlos says

    February 11, 2013 at 7:42 pm

    Hello Paul!. Amazing tutorial.

    I need some help please. When I run the command I get the following error:

    Could not connect to source Mailbox:
    + CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : A3C6C2EA,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

    servidor ‘/o=ENTERPRISE/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=mail.enterprise.com’ doesn’t exist.

    Do you know why am I receiving this error?

    Thank you very much!

    Reply
  67. Ashraf says

    January 28, 2013 at 5:16 pm

    Hi Paul,

    Thank you for the great article. just i would like to know if pst is currepted while exporting due to large data.. how can i use BadItemLimit command with -MailboxExportRequest -Mailbox abc.xyz -FilePath \esp-ho-ex2010apstabc.xyzpst

    Reply
  68. Tyler Beazley says

    January 16, 2013 at 12:31 am

    Can you specify a different database to export mailboxes?

    EG-DB 1 is default, DB2 is mounted, Can we export from DB2?

    Reply
    • Paul Cunningham says

      January 21, 2013 at 1:13 pm

      I don’t understand your question.

      Reply
  69. Ron Rossi says

    January 9, 2013 at 8:59 am

    Paul,

    1. Would this be a way to move a small number of mailboxes off an exchange 2010 server to migrate to an Exchange 2013 server prior to the availability of SP3?
    2. Is there a cmdlet for exporting the user’s contact list as well?
    3, How might one check to see these mailboxes and archives exported correctly before you remove the Exchange 2010 server so you might install Exchange 2013 on the domain?

    This is a terrific article.

    Ron

    Reply
    • sreenivasa says

      January 14, 2013 at 2:46 pm

      New-MailboxExportRequest -ContentFilter {(Participants -eq ‘SNorton@xyz.com’) -and (Received -gt ’03/03/2012′)} -Mailbox “cMERTZ” -FilePath \pitxxxpstsn.pst

      not working and Just Generating 256kb file. please help in running the correct command

      Reply
  70. Jennelle says

    January 5, 2013 at 5:45 am

    Very handy, thanks!

    Reply
  71. Joe says

    December 31, 2012 at 3:28 pm

    Very well done tutorial. Saved me a lot of time. Now I can finally collapse my on premise Exchange in favour of Exchange Online.

    Reply
  72. Nils Kathagen says

    November 3, 2012 at 11:54 pm

    Hi Paul,

    I got the error-message:
    “Failure by connecting to the mailbox-database” (translated from German) > sorry for my English! 🙂

    I set all the user-rights like explained in your How-To.
    Also created the new folder with rights.
    First I couldn’t use the cmdlet! But now it’s working.
    But after giving him the parameter the comes the error-message.

    System: MS SBS2011 with Exchange 2010 SP1 running.

    Here is the complete error-log in German:

    [PS] C:Windowssystem32>New-MailboxExportRequest

    Cmdlet New-MailboxExportRequest an der Befehlspipelineposition 1
    Geben Sie Werte f¸r die folgenden Parameter an:
    FilePath: \SBS-KAMKPSTexport.pst
    Mailbox: nils.kathagen
    Fehler beim Kommunizieren mit der Postfachdatenbank.
    + CategoryInfo : ResourceUnavailable: (0:Int32) [New-MailboxExportRequest], ConnectionFailedTran
    ption
    + FullyQualifiedErrorId : CC7A16D4,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

    Thank you so much for your help!

    Warm regards

    Nils

    Reply
  73. Arnel says

    October 20, 2012 at 12:33 am

    Hi Paul,

    Thank You. We figured out that the network share we are using has ran out of space thats why this is happening. For those who are having the same issue, it would be good to double check your network share if it still has plenty of space.

    Thanks Again!

    Arnel

    Reply
  74. Arnel says

    October 11, 2012 at 7:25 pm

    Hi Paul,

    Great Post! I think you could help us with our issue. Previously, we are able to issue a new mailbox export command without a problem but suddenly, for some reason one mailbox export process has failed (from viewing its status). Then after that, we are not able to issue the export command successfully anymore as we got this error.

    The server or share name specified in the path may be invalid, or the file could be locked
    + CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 60FD650B, Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

    Any help or idea, would much be appreciated. Thanks a lot.

    Arnel

    Reply
    • Paul Cunningham says

      October 20, 2012 at 12:13 am

      This seems pretty clear to me.

      “The server or share name specified in the path may be invalid, or the file could be locked”

      Any reason to suspect that it is not the actual cause?

      Reply
  75. DaveW says

    October 9, 2012 at 8:28 pm

    The New-ExportMailboxReqeust command only works with Powershell (x64) (not x86).

    Reply
    • DaveW says

      October 9, 2012 at 8:29 pm

      sorry, misspelled the command, should be: New-ExportMailboxRequest

      Reply
  76. Amit says

    September 5, 2012 at 8:15 pm

    Its working on powershell instead on Exchange Management shell

    Thanks,
    Amit

    Reply
    • David Fletcher says

      September 7, 2012 at 1:56 am

      Are you Amit from Vancouver?

      Reply
  77. Amit says

    September 5, 2012 at 7:19 pm

    Hi,

    Is Export-Mailbox supporting to Exchange 2010 sp1 standard edition ?

    Thanks,
    Amit

    Reply
  78. Kunal D Mehta says

    September 1, 2012 at 10:56 pm

    Thank you so much!! This helped me!! 😀

    Reply
  79. David Fletcher says

    August 30, 2012 at 8:04 am

    Recently, exports have stuck as queued. I can’t get them to move.

    Reply
    • Paul Cunningham says

      September 3, 2012 at 9:56 pm

      Export requests are processed by the CAS role. Check the event logs on your CAS, see if they have any clues.

      Reply
  80. Hugh says

    August 4, 2012 at 7:24 am

    Thanks and greatly appreciated your time of creating this document.! It is very helpful and works great in my Exchange 2010 SP1 Update 4 environment.

    Reply
  81. Sven says

    July 30, 2012 at 8:46 pm

    Hi

    You know how to delete after the export to pst, all Mails in that Mailbox “Inbox”?

    Thanks for Help

    Sven

    Reply
  82. Eddie says

    July 27, 2012 at 12:05 am

    This is great if you want to export a single mailbox. What about multiple mailboxes based on a domain, a security group membership or an OU? What about just exporting ALL Mailboxes?

    Reply
  83. Leo S says

    July 2, 2012 at 11:25 am

    Hi, I find the info very helpful, Just wonder if I can use this cmdlet to export the email items in one user’s mailbox into another mailbox (merging)? like:

    New-MailboxExportRequest -Mailbox jsmith | New-MailboximportRequest -Mailbox afuss

    Reply
  84. Jason says

    June 1, 2012 at 12:14 pm

    Is it ok to run the Exchange Management Shell on the same Exchange server that I am trying to run the export from? My Exchange server is 2010. Are there some versions that this doesn’t work on?

    Reply
  85. Øyvind Mellem says

    April 12, 2012 at 8:46 pm

    Thanks! This was really helpfull

    Reply
  86. Francisco says

    March 29, 2012 at 7:22 am

    For the following problem:
    Unable to open PST file ‘\Exch-Server1ImportsFile.pst’. Error details: Access to the path ‘\Exch-Server1ImportsFile.pst’ is denied.; Microsoft.Exchange.MailboxReplicationService.RemotePermanentException: Access to the path ‘\Exch-Server1ImportsFile.pst’ is denied.

    The solution is to add to the account ‘SYSTEM’ as a “Co-Owner” in the “Sharing Permissions” not only the Security Tab.

    Francisco

    Reply
    • dammy says

      September 2, 2013 at 9:47 pm

      thanks so much

      Reply
    • Danny says

      May 30, 2014 at 7:04 am

      Thank you!

      Reply
    • Ron says

      August 8, 2014 at 2:52 am

      How do you add a user as a co owner?

      Thanks
      Ron

      Reply
    • Martin Wells says

      September 24, 2015 at 6:07 am

      One more thing. I tried the above as well and had the same issue, I then figured out that I had to fully qualify the name of the server the share was going on because it is in a different domain than the CAS server and the CAS server could not find it.

      Cas server could not find

      \server1file_share

      but had no problem with

      \server1.domain.localfile_share

      Reply
  87. Phil says

    March 16, 2012 at 1:14 am

    Paul great article just what I was looking for.
    Phil.

    Reply
  88. Dotan says

    March 3, 2012 at 5:09 am

    Hi – Very cool. Can I use this cmdlet or a similar one to export mailboxes from an offline EDB? We take snapshots of our Exchange (VMware guest) and we can easily mount the drive and access the EDB file. If not directly from the EDB (like top $$$ recovery products), can we mount the EDB as another database in Exchange, without interfering with production operations?

    Thanks!

    Reply
  89. Brent says

    February 25, 2012 at 1:21 am

    Tried running this today and I get the following error…
    The term ‘New-MailboxExportRequest’ is not recognized as the name of a cmdlet, function, script file, or operable program.

    We are running version 14.1 (build 218.15).

    Reply
    • Paul Cunningham says

      February 25, 2012 at 11:46 am

      Have you done the first step to grant the user rights to export mailboxes? No administrator has that right by default.

      Reply
      • Brent says

        February 28, 2012 at 12:03 am

        Yes, that was successful, but I don’t think this would have worked even without doing that. When I list get-excommand or even get-command, there is no ‘New-MailboxExportRequest’ in the list. Any thoughts as why this would be?

        Reply
      • Jason says

        June 1, 2012 at 11:53 am

        I have had the same experience as Brent. Why doesn’t it recognize the cmdlet?

        Reply
        • itti says

          September 2, 2016 at 6:51 pm

          Try exit shell and start a new after granting the user rights to export mailboxes

          Reply
    • Eddie says

      July 27, 2012 at 12:04 am

      Are you doing this in powershell or are you in the Exchange management shell?

      Reply
  90. santhosh sivaraman says

    February 3, 2012 at 4:18 pm

    Hi Paul,

    I haven’t tried the Mailbox exporting yet.

    But I have a quick questoin. Does the New-MailboxExportRequest command will keep a copy of message inside mailbox or it is like cut & paste?

    Thanks,
    Santhosh

    Reply
  91. Anand_N says

    January 27, 2012 at 5:57 am

    http://technet.microsoft.com/en-us/library/ee633455.aspx

    The above thread seems to indicate it is not needed?

    Reply
  92. Anand_N says

    January 27, 2012 at 5:54 am

    Hi Paul, I signed up for your boot camp module 1 looked good video. quick question:
    Does outlook need to be installed on the exchange 2010 server for mailbox IMPORT and EXPORT cmdlets to work?

    Reply
    • Paul Cunningham says

      January 28, 2012 at 9:21 pm

      No need to install Outlook for Exchange 2010 SP1 (and above) mailbox import/export.

      Reply
  93. Duane Roland says

    December 10, 2011 at 9:11 am

    Great post. Thanks for the great step by step guide. It’s much appreciated.

    Reply
  94. Kevin rose says

    November 23, 2011 at 10:53 pm

    Thanks Paul for sharing this helpful step by step guide to export mailbox to PST. Both cmdlets are very useful for Exchange administrators. However, there are some limitations of these cmdlets as they do not work with damaged database. In order to use these cmdlets, The database file should be easily mounted in MS Exchange server.

    In case of corruption, only third party tools can help to convert edb to pst. file. Third party tools are designed with powerful technology to scan and repair the damaged database file. One such tool is given here: http://www.recover-computerdata.com/exchange-server-recovery.html

    This tool repairs the corrupt or damaged .edb file and export the mailboxes into separate .pst files which can be imported directly into MS Exchange Server or MS outlook.

    Reply
  95. Pete Rosales says

    September 28, 2011 at 8:07 am

    Hello,

    I have several mailbox export requests where the mailbox was deleted before the request so now the failed request appears in RED when I do a get-mailboxmove statistics. How do I remove the RED move requests, not just the completed requests?

    Thanks!

    Reply
  96. ChuckM says

    September 23, 2011 at 1:19 pm

    FYI… Share permissions stopped the export for me with an “is denied”.

    For some reason, I had to add permissions on the folder for the user “SYSTEM” from the local machine (not the active directory).

    Reply
    • Tony Smith says

      December 13, 2013 at 4:07 am

      Thanks Chuck. By adding the System permission to my share it worked like a charm.

      Reply
  97. Jin says

    September 2, 2011 at 2:01 pm

    Exchange server OS: windows 2008 R2
    Exchange 2010 SP1
    All domain controllers use Windows 2003 and did schema and prepare domains.

    I have
    main.com, aaa.main.com, bbb.main.com, ccc.main.com

    user name: aaatest

    I put aaatest in Organization Management & mailbox import export member.
    aaamain can do export pst file in aaa users.

    But i can not export bbb or ccc users.
    I get this error message
    _________________________________________________________________
    The operation couldn’t be performed because object ‘test1@bbb.main.com’ couldn’t be found on ‘domain.aaa.main.com’.
    + CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 978F19B3,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    _______________________________________________________________

    What kind of permission i have to give aaatest user account to export in other domain ?
    I can create user in bbb or ccc domain names.

    Thanks.

    Reply
    • Paul Cunningham says

      September 3, 2011 at 9:48 pm

      “Couldn’t be found on domain.aaa.main.com” doesn’t sound like a permissions issue, sounds like a scope issue. Your Exchange Management Shell session will be scoped to the local domain by default.

      Try running

      Set-ADServerSettings -ViewEntireForest 1

      to change scope to entire forest and try again.

      Reply
      • Jin says

        September 4, 2011 at 4:18 pm

        Dear Paul

        Thank you so much for your reply.

        Reply
      • Paul Cunningham says

        September 4, 2011 at 4:34 pm

        PS just changed that to

        Set-ADServerSettings -ViewEntireForest 1

        Reply
    • Greg says

      March 2, 2012 at 5:12 am

      I found this link which helped me tremendously with this error.
      http://www.mikepfeiffer.net/2010/10/error-couldnt-find-the-enterprise-organization-container-when-creating-a-new-mailbox-export-request/

      it ended up being a permissions issue.

      Reply
      • Antonio says

        March 10, 2015 at 7:24 am

        This worked for me… but have to see why it won’t work with the -IsArchive syntax

        Thanks

        Reply
  98. Chris Jershauge says

    September 2, 2011 at 8:15 am

    Hi Biba37

    I am running a Exchange as a Multi-Tenant installation, and I am using this command

    New-MailboxExportRequest –Mailbox “organizationuser” –Filepath \CASHUB01PSTuser.pst

    Please note that the path for the parameter FilePath is without ”
    I havent tryed it with the ” but without it works for me

    Reply
  99. Shawn Z says

    August 3, 2011 at 2:17 am

    1) Download “ExMerge” on to a Windows 2003 server with Exchange running on it.
    2) Copy “exchmem.dll” to the folder with the “ExMerge” contents.
    3) Give full perms to administrator or the user you logged in as to the server and mailboxes.
    a. In Exchange Manager, right click in server, properties and then security
    b. Uncheck inherit
    c. Add everyone, and give full control to everyone.
    d. Take ownership
    This ensures that you have the require “send as” and “receive as”, but the step here are very insecure. While this is insecure, it does effectively allow a mailbox backup or each user for a system that is about to be decommissioned.

    Reply
    • J says

      March 10, 2016 at 2:30 pm

      Terrible advice!
      Exmerge can’t handle mailboxes that are over 2GB in size.

      Reply
  100. biba37 says

    May 4, 2011 at 10:57 pm

    So, is here any other option to export – import PST ?

    Reply
    • Paul Cunningham says

      May 4, 2011 at 11:01 pm

      Outlook I guess. Sorry I just don’t have exposure to any hosted installs to have encountered this scenario.

      Reply
  101. biba37 says

    May 4, 2011 at 10:53 pm

    Installed as Hosted Exchange … multi tenant

    http://www.howexchangeworks.com/2010/10/installing-exchange-2010-sp1-in-hosting.html

    Reply
    • Paul Cunningham says

      May 4, 2011 at 10:54 pm

      Ah. Okay in that case I don’t know for sure either way whether the import/export process works the same for a hosted mode install as it does for a normal install. But that might be the issue right there.

      Reply
  102. biba37 says

    May 3, 2011 at 8:33 pm

    Hi,
    am getting this error while try MailboxExportRequest

    New-MailboxExportRequest –Mailbox “organizationuser” –Filepath “\CASHUB01PSTuser.pst”
    Couldn’t connect to the source mailbox.
    + CategoryInfo : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemoteTransientException
    + FullyQualifiedErrorId : 49348511,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

    Share + User Rights are OK
    hostfile CASArray IP fake not working for me.

    Thank for help
    Biba

    Reply
    • Paul Cunningham says

      May 4, 2011 at 10:02 pm

      Hi biba37, I can see a few other discussions around the web about the issue, but nothing definitive. Is the mailbox on an Exchange 2010 SP1 Mailbox server?

      Reply
      • biba37 says

        May 4, 2011 at 10:38 pm

        Hi Paul,

        yes, its clear Exchange SP1 -hosted installation

        Reply
      • Paul Cunningham says

        May 4, 2011 at 10:40 pm

        Hosted as in cloud/off-premises?

        Reply
        • Alex Robinson says

          March 28, 2014 at 11:07 pm

          Is there a way to delete the contents of a folder like delete items using a command such as this?

          Reply
      • Mahesh Khanolkar says

        September 20, 2013 at 2:50 am

        Hi paul,

        am using below caoomd to export specific period data but no data has been import in pst.

        Please help.
        [PS] C:Windowssystem32>New-MailboxExportRequest -ContentFilter {(Received -lt ’09/30/2012′) -and (Received -gt ’09/19/2012′)} -Mailbox avendus.archival -Name 20sept -FilePath \ACPLMUM-HO-D020Archival20sept.pst

        Regards,
        Mahesh

        Reply
      • Alex Robinson says

        March 28, 2014 at 11:06 pm

        Is there a way to delete the contents of a folder like delete items using a command such as this?

        Reply
    • Jason says

      September 6, 2014 at 2:48 am

      hi,
      had the same issue. The folder you are moving the PST too has to have been shared out to the user account who is doing the export and also advanced sharing permissions if applicable to everyone.

      Reply

Leave a Reply Cancel reply

You have to agree to the comment policy.

Recent Articles

  • Changes in Microsoft 365 Apps Channels and Why You Should Care
  • A New Tool to Manage Exchange-related Attributes Without Exchange Server
  • Microsoft Launches Group Ownership Governance Policy
  • Making the Case for Identity Governance in Azure Active Directory
  • Prepare an Office 365 migration plan assessment using PowerShell

Copyright © 2022 Quadrotech Solutions AG · Disclosure · Privacy Policy
Alpenstrasse 15, 6304 Zug, Switzerland