Memorise

Exchange PST Export

Before you can export PST you will need to have mailbox Import/Export role

Add to Mailbox Import Export role

New-ManagementRoleAssignment -Role “Mailbox Import Export” -User “<user name or alias>”

Now you can use the command below to export pst

New-MailboxExportRequest -Mailbox <user> -FilePath \\<server FQDN>\<shared folder name>\<PST name>.pst

 

I have multiple organisation, therefore I need to specify the Domain controller where the users exist.

EXPORT PST

New-MailboxExportRequest -DomainController glob-dc01.sal.dom.ab-org.co.uk -Mailbox shiraj@shiraj.co.uk -FilePath “\\192.168.140.99\ExportPst\Shiraj042019.pst”

Get-MailboxExportRequest

Get-MailboxExportRequest -Mailbox “<MailboxIdentity>” | Format-List Name,FilePath,Mailbox,Status

Get-MailboxExportRequestStatistics -Identity “<MailboxIdentity>\<MailboxExportRequestName>”

EXAMPLE:

[PS] C:\Exchange_Scripts>Get-MailboxExportRequest -Mailbox “shiraj@shiraj.co.uk” | Format-List Name,FilePath,Mailbox,Status

Name : MailboxExport
FilePath : \\192.168.140.99\ExportPst\Shiraj042019.pst
Mailbox : sal.dom.ab-org.co.uk/SAL/Users/Shiraj
Status : InProgress

[PS] C:\Exchange_Scripts>Get-MailboxExportRequestStatistics -Identity “shiraj@shiraj.co.uk\MailboxExport”

Name                                   StatusDetail                          SourceAlias             PercentComplete
—-                                       ————                              ———–                  —————
MailboxExport                 CopyingMessages                 Sshiraj                       82

[PS] C:\Exchange_Scripts>


Categorised as: Exchange, Microsoft, Outlook, Recovery


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.