title: Export all mailboxes' contacts to CSV
body: <p>Is there a way to export all the contacts for each mailboxes in Exchange 2010 to a format easy to import to MS SQL? (i.e. CSV)</p>
  
  <p>So far I got this working but a PST format is absolutely pointless:</p>
  
  <pre><code>foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath “\\computer\c$\pst\$($i.Alias).pst” -IncludeFolders “#Contacts#” -ExcludeDumpster}
  </code></pre>
  
  <p>The objective is to automate the task so we can run it each week or so. </p>