Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 84
  • Last Modified:

Mass PST export in Exchange 2010

In the Exchange 2010 (SP3)  management shell, can anyone tell me what would be the correct command and syntax to export all archive mailboxes from an archive database as individual PST files?  I am really hoping I don't have to export them one by one.
0
rckollar
Asked:
rckollar
  • 3
  • 2
1 Solution
 
Britt ThompsonSr. Systems EngineerCommented:
You should just be able to run a query against Exchange to find all mailboxes with the personal archive enabled - $archives = Get-Mailbox | ?{$_.ArchiveDatabase -ne $null}

Then you can run the new mailbox export request in a loop against all the collected mailboxes -
foreach($archive in $archives)
{
New-MailboxExportRequest -Mailbox $($archive.alias) -IsArchive -FilePath "\\SERVER01\PSTFileShare\$($archive.alias).pst"
}
0
 
rckollarAuthor Commented:
Nothing seems to happen with those commands.
0
 
Britt ThompsonSr. Systems EngineerCommented:
Get-Mailbox | ?{$_.ArchiveDatabase -ne $null}

Does just running this produce any output?
0
 
rckollarAuthor Commented:
Yes, We get the list.  But nothing seems to happen with the second command.
0
 
rckollarAuthor Commented:
Nevermind.  We got it.  Thanks, it works!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now