How do I export multiple mailboxes on various DBs to pst files?
I am looking for some help people. I am trying to bulk export mailboxes, in a export.csv file from various DBs on 1 server using the following script that I found at http://www.stevieg.org/?p=307 My question is how do I specify the location of the export.csv in this command? And where it says (Import-csv .\exports.csv), do I have to include both csv file names or just the one I am working with in my case. foreach ($i in (Import-csv .\exports.csv)) {New-MailboxExportRequest -mailbox $i.alias -FilePath “\\brockhaus\ex2010exports$\$($i.alias).pst”} Thank you in advance for your assistance. TDTD
August 30th, 2011 8:06pm

I don't have an Exchange2010 environment to test this, but I'm thinking just doing a get-content on the csv file will work: $users = get-content .\exports.csv foreach($user in $users){New-MailboxExportRequest -mailbox $user.alias -FilePath "\\brockhaus\ex2010exports\$($user.alias).pst"} let me know if that does the trick! jm
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2011 11:51am

If you run into issue with the script, check out Lucid8's DigiScope http://www.lucid8.com/product/digiscope.asp since it can do what you want i.e. search, export to PST, MSG or XML, Delete, Purge and more, i.e. open offline EDB's to search and export to PST, MSG and XML or recovery directly from the offline EDB to a production serverTroy Werelius www.Lucid8.com Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScope
August 31st, 2011 7:18pm

Hello, Yes, you need to include the full path for the file location. http://technet.microsoft.com/en-us/library/ff607299.aspx Thanks, Simon
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2011 10:23pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics