Export  All Mailboxes from Different Databases - Separately

Posted on 2009-04-29
Last Modified: 2012-05-06
I've created three separate databases and split my users up accordingly. I'll then export everymail within each db into separate PST's using this command:

get-mailbox | export-mailbox -PSTFolderPath c:\PstFiles  (thanks M)

But this command gets all maillboxes and I only need to from one DB at a time. I have tried this;
get-mailboxdatabase FRMAILSVR\Remote | export-mailbox -PSTFolderPath c:\PstFiles
but I get a strange error.
I know this can be done but I cant get the command right.  thanks for the help

Question by:DFCRJ
    LVL 32

    Accepted Solution

    Please use Get-Mailbox -Database DATABASENAME | Export-Mailbox  -PSTFolderPath c:\PstFiles
    I hope you are aware of Export-Mailbox pre-reqs
    Nitin Gupta (gupnit)
    LVL 32

    Expert Comment

    Do refer
    And the command again: Get-Mailbox -Database DATABASENAME | Export-Mailbox  -PSTFolderPath c:\PstFiles
    Nitin Gupta (gupnit)

    Author Closing Comment

    Thats exactly what I needed - They are flowing now - thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free book by J.Peter Bruzzese, Microsoft MVP

    Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now