locked
Export-Mailbox not working RRS feed

  • Question

  • Using Exchange 2007 SP2. I am trying to export a specific user's mailbox from a database I restored from an old backup. I gave myself permissions to the mailbox. Since this is a restore there are two mailboxes for some users. One on the 2007 restored database and one on the new 2010 server. 

    I am having troubled getting export-mailbox to export just the restored 2007 mailbox. In other words.... I can't get export-mailbox to only look at the restored 2007 database and not the new 2010 database. 

    I have tried using get-mailbox -Database DatabaseName | Export-Mailbox -Identity UserName -PstFolderPath C:\Test.pst 

    I get no output and no error. 

    Thanks

    Wednesday, January 25, 2012 3:12 PM

Answers

  • Please go for a Simple Command

    Export-Mailbox -Identity <MailboxIdParameter> -PSTFolderPath C:\Test.pst

    Ref Link -

    http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx

     

    Regards
    Satheshwaran Manoharan

    • Proposed as answer by Terence Yu Thursday, January 26, 2012 2:32 AM
    • Marked as answer by Terence Yu Thursday, February 2, 2012 7:29 AM
    Wednesday, January 25, 2012 4:15 PM
    1. So you restored the 2007 database to a left over 2007 server  and then you have same named mailboxes within the 2010 environment, and therefore when you export by name you are getting contents from both 2007 and 2010 for users with mailboxes that match in both servers?
    2. I am surprised that this even worked at all and IMHO dont think this is wise to try becuase your queries depend upon AD and it should only have information and access to the online 2010 server but apparently since you are querying by name its actually allowing you to get some information from both.  You might be able to get the export to work by finding the MB guids in that database http://technet.microsoft.com/en-us/library/bb123685.aspx however personally I think you are playing with fire having the old 2007 DB that was migrated to 2010 put back online.  
    3. I would reccomend that you instead use the 2007 RSG http://technet.microsoft.com/en-us/library/aa997694(EXCHG.80).aspx option or use a 3rd party product like Lucid8's DigiScope http://www.lucid8.com/product/digiscope.asp which will let you open any offline Exchange database so that you can Browse, View, Search and Export Mailboxes, Folders and Individual items to PST, MSG & XML or if desired you can recover information directly from any offline database into any Production Exchange server, even cross version i.e. 2007 --> 2010 etc.

    Troy Werelius
    www.Lucid8.com
    Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScope
    • Proposed as answer by Terence Yu Thursday, January 26, 2012 2:32 AM
    • Marked as answer by Terence Yu Thursday, February 2, 2012 7:29 AM
    Wednesday, January 25, 2012 7:25 PM

All replies

  • Hi

    You can use the ExchangeGuid attribute to specify a particular mailbox in this scenario.

    Cheers, Steve

    Wednesday, January 25, 2012 3:38 PM
  • Please go for a Simple Command

    Export-Mailbox -Identity <MailboxIdParameter> -PSTFolderPath C:\Test.pst

    Ref Link -

    http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx

     

    Regards
    Satheshwaran Manoharan

    • Proposed as answer by Terence Yu Thursday, January 26, 2012 2:32 AM
    • Marked as answer by Terence Yu Thursday, February 2, 2012 7:29 AM
    Wednesday, January 25, 2012 4:15 PM
    1. So you restored the 2007 database to a left over 2007 server  and then you have same named mailboxes within the 2010 environment, and therefore when you export by name you are getting contents from both 2007 and 2010 for users with mailboxes that match in both servers?
    2. I am surprised that this even worked at all and IMHO dont think this is wise to try becuase your queries depend upon AD and it should only have information and access to the online 2010 server but apparently since you are querying by name its actually allowing you to get some information from both.  You might be able to get the export to work by finding the MB guids in that database http://technet.microsoft.com/en-us/library/bb123685.aspx however personally I think you are playing with fire having the old 2007 DB that was migrated to 2010 put back online.  
    3. I would reccomend that you instead use the 2007 RSG http://technet.microsoft.com/en-us/library/aa997694(EXCHG.80).aspx option or use a 3rd party product like Lucid8's DigiScope http://www.lucid8.com/product/digiscope.asp which will let you open any offline Exchange database so that you can Browse, View, Search and Export Mailboxes, Folders and Individual items to PST, MSG & XML or if desired you can recover information directly from any offline database into any Production Exchange server, even cross version i.e. 2007 --> 2010 etc.

    Troy Werelius
    www.Lucid8.com
    Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScope
    • Proposed as answer by Terence Yu Thursday, January 26, 2012 2:32 AM
    • Marked as answer by Terence Yu Thursday, February 2, 2012 7:29 AM
    Wednesday, January 25, 2012 7:25 PM
  • My understanding is that you are using an RSG?

    This is where you restored the DB too right?


    Sukh
    Wednesday, January 25, 2012 11:56 PM
  • Hi 
      Do you have anything to update?
      If post is helpful to you, please mark it.

    Terence Yu

    TechNet Community Support

    Monday, January 30, 2012 2:06 AM