Where Is Export/Import Cmdlets In Exchange 2010?

Share & Comment

Where is Export / Import-Mailbox cmdlet in 2010 RC? I had posted an article covering the GUI export/import functionality in 2010 Beta. The new 2010 RC doesn’t have the option to export/import in the exchange console. I was a bit disappointed to see this feature taken off in 2010 RC, after having it in the beta version. Anyway, having found out that it is no longer in the console, I fired up the exchange shell and went for export-mailbox cmdlet. To my surprise, I couldn’t run the command, nor could I even find it with Get-Command *export*. My experience was the same with import-mailbox cmdlet as well.

Neither do you have the cmdlets in shell nor the options in GUI. So, how would you export a mailbox or import a PST?

I am sure that all of you have heard that the security model has been changed in 2010 as well, which now use Role Based Access Control (RBAC).

In order to see/run export/import cmdlets in the shell, you should be given explicit permissions. No user is allowed to run the command by default. The user who wants to run the cmdlets should be given “Mailbox Import Export” management role.

Let me explain with an example. I want to give my account rights to run export/import cmdlets. The cmdlet I need is

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User “Rajith”

EI1

You can also create a group and give the group the necessary access. This way, you only need to add any new users who wants this permission to the correct group using AD Users and Computers (thereby avoiding the shell)!

New-ManagementRoleAssignment –Role “Mailbox Import Export” –Group “MailboxAccessGroup”

The default administrator account with which I installed Exchange 2010 in the first place didn’t have the cmdlets available. I had to run

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User administrator

Once the command was run, export and import cmdlets were made available to me!

IM2

Now, I run the export mailbox cmdlet & here comes the error message.

EI3

I tried running the same command after installing Outlook 2010 32-bit edition, but got the same error. So, you need a 64-bit Outlook 2010 along with 2010 management tools to run export/import cmdlets. Once I installed the 64-bit Outlook 2010, I was able to export the mailbox.

EI4

EI6

Share & Comment
Subscribe for Updates
Never miss a blog post again
About the author: UC Architect, Blogger, Husband & Dad. I have been in IT for the last 12 years, with Exchange Server becoming the prime area in the last few years. I am active on Experts Exchange & TechNet forums and I am a technical author for SearchExchange.

27 comments… add one

  1. Deepak Khandelwal

    Good one. Great finding.. I would be intresting to see what are other roles which are not available by default, In some way it is better not to have too many rights even for Administrator by default.

  2. I agree. But, I would like to have the right given to the builtin admin atleast, by default.

  3. Error was found for Name Surname (name@domain.com) because: Error occurred in the step: Moving messages. Fai
    led to copy messages to the destination mailbox store with error:
    MAPI or an unspecified service provider.
    ID no: 00000000-0000-00000000, error code: -1056749164
    + CategoryInfo : InvalidOperation: (0:Int32) [Export-Mailbox], RecipientTaskException
    + FullyQualifiedErrorId : 8C360F11,Microsoft.Exchange.Management.RecipientTasks.ExportMailbox

    Googled and tried to add FullAccess to the administrator account with this cmdlet:
    "Get-Mailbox | Add-MailboxPermission -User "Administrator" -AccessRights FullAccess"
    but I still get the error above.

  4. Once the permission has been applied, you need to wait for atleast 2 hours for exchange to pick it up. Or you can restart the information store service for immediate response.

    Do you have Outlook 2010 64 bit edition and 2010 management tools installed? Are you using Exchange Shell, which you should use or normal Windows Powershell?

  5. I am using Exchange PowerShell, I restarted the information store service, also tried rebooting the server, nothing seemed to work.
    I have outlook 64bit installed on my exchange server.
    more details are here:
    http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/613adb6c-d9b8-40f5-b958-e7c41d096b75/

  6. Hi,

    i want to move or export a mialbox from Ex2010 back to Ex2003 – which will be the best approach?

    Andy

  7. Hi Andy,

    Best approach will be to use export cmdlets and import the PST.

    I haven't done it myself, but you should be able to move the mailbox back to 2003 using the New-MoveRequest cmdlets. Move-Mailbox cmdlet doesn't work in 2010 anyway.

    Let me know how it goes. Thanks.

  8. Anonymous

    How can I import my 2003 mailboxes to 2010?

    Ricky

  9. Hi Ricky,

    Are the servers in the same domain? If so, use 2010 EMC and move mailbox. Alternatively run New-MoveRequest cmdlet from 2010 Shell.

  10. There is a bug in Exchange 2010 which requires the modification of the Exchange database object security settings in ADSI edit if you are attempting to perform a single server stand-alone installation. I.E. the single server will hold all the Exchange roles (Hub, Cas, MBX). This is in addition to a few other basic items.

    1. The System account needs to have the following permissions:
    - Read
    - Administer Information Store
    - Allow Impersonation to Personal Exchange
    - Create Named Properties in Information Store
    - Open Mail Send Queue
    - Receive As
    - Send As
    - View Information Store Status

    2. Need to execute < New-ManagementRoleAssignment -Role "Mailbox Import Export" -user username > from the Exchange Pshell.

    3. Outlook 2010 x64 needs to be installed locally on the server performing the Import/Exports.

  11. Hi Dennis,

    Good to know, though I haven't seen this yet in my lab setup, which is mostly single server setup.

    Thanks.

  12. OKay need to move my mail that is mbox format over to my new exchange 2010, Does anyone know how to do that?

  13. Patrick, can you explain it a bit more please? What are you trying to do?

  14. okay i have an email server that is not exchange. all the mailboxs are not pst files they are Mbox. i need to get them moved over to exchange.

  15. Hi Patrick,

    What mail system do you have? Which Exchange version are you moving to? Easiest will be to convert the mailbox into PSTs (if possible) and import it into Exchange.

    If your mail server is Lotus Notes, Microsoft has a free tool called Transporter Suite. That will only work against verions upto 2007 (2010 is not supported).

  16. Hi Rajith,

    we are using PostFix email server and i have setup an exchange 2010 server. the PostFix puts all mailboxs in mbox format i need to find a way to get them into exchange.

  17. Basti

    Hello,

    I think I did all the things to do for getting the export/import cmdlets running. But, I still don't get the cmdlets. I installed Outlook 2010 x64 on the Exchange Server, I added groups and users to the "Mailbox Import Export" Role, but the cmdltes are missing. I got two Window 2008 R2 Servers with Ex2010 SP1.Any ideas?

  18. Basti

    http://arstechnica.com/civis/viewtopic.php?f=17&t;=1123368&view;=unread

    "SP1 changes things up with import/export. In SP1 you don't need Outlook installed on the server to import/export PSTs, and the cmdlets changed.
    "

    Nevertheless, thank you.

  19. Hi Basti,

    Thanks for the post. I have already blogged about it http://www.theucguy.net/2010/06/exportimport-mailbox-improvements-in.html

  20. Anonymous

    for our companies data retention policy I had been using ex-merge on our old 2003 server to export PSTs of all users Deleted Items and Dumpster Items. From what i've read, 2010 won't export dumpster data at all.. so i'm at a loss already. Hope grabbing psts of all users via one cmd is not as complicated as it seems from what i've read. I'd hate to have to start exporting (merge not archive) each employees deleted items one at a time.

  21. Anonymous

    2

  22. thanks, was biggin me this, i got the commands back with yours and another article

    http://www.techieshelp.com/export-mailbox-and-import-mailbox-commands-missing/

  23. Anonymous

    Remove-MailboxExportRequest

    mentioned command is not working in exchange 2010 Sp1
    please help!

    Regards
    Lalit

  24. Noticed a typeo – when I ran this I got an error:

    New-ManagementRoleAssignment –Role “Mailbox Import Export” –Group “MailboxAccessGroup”

    works with a correction to:

    New-ManagementRoleAssignment –Role “Mailbox Import Export” –SecurityGroup “MailboxAccessGroup”

    thanks!

    1. Rajith Enchiparambil

      Thanks Digital.

      Probably a change introduced with a Service Pack ;)

    1. Rajith Enchiparambil

      Thanks Felipe. As the tool came out after this article, I have written about it later on.

Leave a Comment