Powershell to export all mailboxes from exchange database to .pst

Powershell to export all mailboxes from exchange database to .pst

You can export all exchange mailbox data in to pst and store it on share drive b y using below command:

foreach ($AllMailboxes in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $AllMailboxes -FilePath “storageserver1export$($AllMailboxes.Alias).pst” } 

Note – please change input values (marked in yellow) as per your requirements.  

(Visited 128 times, 1 visits today)

Add a Comment

Facebook