Link to home
Start Free TrialLog in
Avatar of DFCRJ
DFCRJFlag for United States of America

asked on

Export All Mailboxes from Different Databases - Separately

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

ASKER CERTIFIED SOLUTION
Avatar of Nitin Gupta
Nitin Gupta
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do refer http://technet.microsoft.com/en-us/library/aa998579.aspx
And the command again: Get-Mailbox -Database DATABASENAME | Export-Mailbox  -PSTFolderPath c:\PstFiles
Thanks
Nitin Gupta (gupnit)
Avatar of DFCRJ

ASKER

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