Exchange 2007/10 - How export to pst single mailbox or all mailboxes with single command or powershell command

With Exchange 2010 SP1 there is possibility to automatically export single mailbox or all mailboxes and convert them to .pst file (it could be alternative backup procedure)

Here are steps that you need to follow:

1. Give a domain user ability to import Export mailbox with this command

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User "Domain\user_domain"

otherwise:

New-MailboxExportRequest -Mailbox "TEST, user" -FilePath \\SERVERNAME\share_name\TEST.user-export.pst

2. Create a network share and give “Exchange Trusted Subsystem” groups read and write on that share.

3. Create export request like follow:

New-MailboxExportRequest -Mailbox “mailbox_bame” -FilePath “network share”

4. To verify Export request status

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Get-MailboxImportRequest

5. To view mailbox export completed and remove them:

Get-MailboxExportRequest | where {$_.status -eq "Completed"}

Remove export mailbox completed:

Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest

Get-MailboxExportRequest | Remove-MailboxExportRequest

6. If you want to backup all mailboexes you can use this script

foreach ($i in (Get-Mailbox | Where {$_.ExchangeVersion.ExchangeBuild.Major -eq 14})) { New-MailboxExportRequest -Mailbox $i -FilePath "\\SERVER_BAME\SHARE\${$i.Alias).pst" }

In case you want to backup only some mailboxes you need to create a .csv file with first row with Alias name followed by Mailboxes alias name or simple mailbox name

foreach ($i in (Import-Csv .\exports.csv)) { New-MailboxExportRequest -Mailbox $i.Alias -FilePath "\\SERVER_BAME\SHARE\$($i.Alias).pst" }

Later you can perform Mass Exports as a scheduled task.


<----------->

<===============================>

With Exchange 2007 SP3 there is possibility to automatically export single mailbox or all mailboxes and convert them to .pst file but procedure is slightly different than Exchange2010

On Exchange 2007 otherwise you need to perform this task on 32 bit Server with outlook 2003 SP2 using this syntax.

In order to export or import mailboxes to PST files the following requirements must be met:


  1. Export/Import to PST must be run from a 32 bit client machine with Exchange Management Tools installed (Version Exchange 2007 SP1 or later). The 32bit requirement comes from a dependency with the Outlook client.

    Microsoft Exchange Server 2007 Management Tools (32-Bit)
  2. Either Outlook 2003 or Outlook 2007 must be installed on the client machine.


The user running the task must be an Exchange Organization Admin or an Exchange Server Admin on the server where the mailbox to export/import lives.


Export-Mailbox -Identity “domain\userdomain  -PSTFolderPath f:\ ArchiviedPST\Archiviedusers.pst

More details here:

https://blogs.technet.microsoft.com/exchange/2007/04/13/how-to-export-and-import-mailboxes-to-pst-files-in-exchange-2007-sp1/

[original article]

http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1/ 

http://www.stevieg.org/2010/07/using-the-exchange-2010-sp1-mailbox-export-features-for-mass-exports-to-pst/ 

<-------->

You could be interested to these similar article too:

Exchange 201X- How get all users who have a forwarding email, redirect rule and delegate permission on them mailboxes or Outlook folders

Exchange 2013 - How to monitor it with powershell command

Exchange - Microsoft Exchange Server User Monitor

Exchange 2010 - Poster dell'architettura

Exchange 2010 - How to monitor Exchange Health

Exchange 2010 - How export to pst single mailbox or all mailboxes with single command or powershell command

Exchange 2013 - How to monitor it with powershell command

Exchange 2010 - How to get info on Mobile devices connected via ActiveSync, quarantine any new device and remote Wipe them.

Exchange 2003/2010 - Add a photo to user contact