title: Exchange 2010 Batch Export Mailboxes to .pst's
body: <p>I have an Exchange 2010 environment with about 1000 users across 6 databases. They all have archives enabled that are stored in separate databases.</p>
  
  <p>I have backup software that gets the database, but I want to supplement this by doing a .pst export of mailboxes directly from Exchange.  I want to take all the users in a given database and export to .pst. My command looks like below:</p>
  
  <pre>
  foreach ($i in (Get-Mailbox -database Accounting)) { 
      New-MailboxExportRequest -Mailbox $i -FilePath "\\server\D$\PSTBackup\test\Accounting\$($i.Alias).pst" -baditemlimit 50 -acceptlargedataloss 
  }
  </pre>
  
  <p>The problem with this is it exports them all at once (killing our server resources) and half of them fail because there are too many running at once.  I'd like a script to backup about 20 mailboxes at a time. Any help is appreciated.</p>