Powershell script to export Mailboxes

To export all mailboxes in exchange 2010 and exchange 2013

Copy the code below in a notepad window and save it as a powershell script.

$mailboxes = get-mailbox

foreach ($mailbox in $mailboxes) {

new-mailboxexportrequest -mailbox $mailbox -FilePath \\server\share\$mailbox.pst }

To export a single mailbox in Exchange 2010 and Exchange 2013.

New-MailboxExportRequest -Mailbox -FilePath \\\\.pst

If you get an error for command could not be recognized, you most probably do not have export import rights. Use the following command to assign rights.

New-managementroleassignment –Role “Mailbox Import Export” –User UserName

Supported technologies

Need Help?

No problem! Our friendly team is here to help answer any concerns you might have.

Contact Us

Every day over 2500 devices are managed by our NOC Engineers
and over 25 Hosting and MSP companies leverage our NOC services to get their job done.

We let our users do talking

Sign up for our Newsletter

Register to receive news and updates

[newsletter]
Copyright offsitenc 2020 – All Rights Reserved