How to Export Mailboxes with Exchange Server 2010 SP1

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.

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.

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.

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.

[PS] C:\>New-MailboxExportRequest -Mailbox alan.reid -FilePath \\esp-ho-ex2010a\pst\alan.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.

[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.

[PS] C:\>Get-MailboxExportRequest -Name MailboxExport | fl

RunspaceId     : c48a9069-e572-4c65-80ea-773e61e5337e
FilePath       : \\esp-ho-ex2010a\pst\alan.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.Reid\MailboxExport
IsValid        : True

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

[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.

[PS] C:\>New-MailboxExportRequest -Mailbox alan.reid -FilePath \\esp-ho-ex2010a\pst\alan.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.

[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.

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

Paul is a Microsoft Exchange Server MVP and publisher of Exchange Server Pro. He also holds several Microsoft certifications including for Exchange Server 2007, 2010 and 2013. Connect with Paul on Twitter and Google+.

Comments

  1. biba37 says:

    Hi,
    am getting this error while try MailboxExportRequest

    New-MailboxExportRequest –Mailbox “organization\user” –Filepath “\\CASHUB01\PST\user.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

    • 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?

      • Hi Paul,

        yes, its clear Exchange SP1 -hosted installation

      • Hosted as in cloud/off-premises?

        • Alex Robinson says:

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

      • Mahesh Khanolkar says:

        Hi paul,

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

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

        Regards,
        Mahesh

      • Alex Robinson says:

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

    • 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.

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

  3. 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.

  4. Chris Jershauge says:

    Hi Biba37

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

    New-MailboxExportRequest –Mailbox “organization\user” –Filepath \\CASHUB01\PST\user.pst

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

  5. 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: aaa\test

    I put aaa\test in Organization Management & mailbox import export member.
    aaa\main 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 aaa\test user account to export in other domain ?
    I can create user in bbb or ccc domain names.

    Thanks.

  6. 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).

  7. Pete Rosales says:

    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!

  8. 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.

  9. Duane Roland says:

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

  10. 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?

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

    The above thread seems to indicate it is not needed?

  12. santhosh sivaraman says:

    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

  13. 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).

  14. 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!

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

  16. Francisco says:

    For the following problem:
    Unable to open PST file ‘\\Exch-Server1\Imports\File.pst’. Error details: Access to the path ‘\\Exch-Server1\Imports\File.pst’ is denied.; Microsoft.Exchange.MailboxReplicationService.RemotePermanentException: Access to the path ‘\\Exch-Server1\Imports\File.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

  17. Øyvind Mellem says:

    Thanks! This was really helpfull

  18. 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?

  19. 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

  20. 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?

  21. Hi

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

    Thanks for Help

    Sven

  22. 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.

  23. David Fletcher says:

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

  24. Kunal D Mehta says:

    Thank you so much!! This helped me!! :D

  25. Hi,

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

    Thanks,
    Amit

  26. Its working on powershell instead on Exchange Management shell

    Thanks,
    Amit

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

  28. 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

    • 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?

  29. 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

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

  31. Very handy, thanks!

  32. 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

    • sreenivasa says:

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

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

  33. Tyler Beazley says:

    Can you specify a different database to export mailboxes?

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

  34. 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!

  35. 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…)

  36. 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

    • 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.

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

  38. Jason Bedogne says:

    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?

  39. Dave Scott says:

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

  40. Matt Vest says:

    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?

  41. 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=\\mailserver\E$\Exmerge\Joe.pst}.

    • Jason Bedogne says:

      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.

  42. You could write the last command like

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

  43. 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.

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

      • 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.

      • 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.

  44. 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.

    • 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.dom\share

      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 …

      • 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.

  45. Kevin O'Brien says:

    Hey Paul,

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

    Thank you,
    Kevin

  46. Thanks for your post it was very helpful.

    Thank you
    Meraj

  47. 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.

  48. 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.

  49. MarioTunes says:

    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

    • MarioTunes says:

      Probably that should work

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

      • MarioTunes says:

        Or the following script

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

        foreach ($mailbox in $mailboxes) {

        new-mailboxexportrequest -mailbox $mailbox -FilePath \\server\c$\$mailbox.pst

        }

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

    Is this expected behavior?

  51. Hello Paul,
    I executed following command:

    “New-MailboxExportRequest -Mailbox user-FilePath \\localhost\exportpst\user_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

  52. Hi

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

    Regards

  53. 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

  54. Kadir OZTURK says:

    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

  55. 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?

  56. 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.

  57. 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 \\exch1\ExchangeExportPST\USER.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

  58. 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!

  59. Chadd M says:

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

  60. 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:\Windows\system32>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-2\pst\$($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

  61. 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-2\pst\$($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

Leave a Comment

*

We are an Authorized DigiCert™ SSL Partner.