Friday, 8 July 2011

Exchange 2010 – Export Database to .pst

Have you ever wanted to export/backup your Exchange 2010 mailboxes to a .pst file?

Make sure you have created a share and your user has access to that share; please replace databasename with your Exchange Database name and replace uncpath with your fileshare.

This command will cycle through all users in the Database and export their mailboxes to alias.pst

Open the Exchange 2010 powershell prompt and run the following command.

$Export = get-mailbox –Database "databasename" ; $Export|%{$_|New-MailboxExportRequest -FilePath "\\uncpath\$($_.alias).pst"}

No comments: