How to export an Exchange Mailbox using Powershell (Exchange Management Shell)

Last updated on September 25th, 2021 at 08:59 pm

Read Time:59 Second

If you want to export an Exchange mailbox to PST with some variables included, then this guide should help you out.

In Exchange Management Shell, you can run the following command to export a mailbox to PST with variables like delete all mail from mailbox after export or maybe excluding Contacts or Calendar.

The command you should use is this:

Export-Mailbox –Identity “alias” -PSTFolderPath C:MAILARCHIVES -EndDate “01/01/2015” -ExcludeFolders “Contacts”,”Drafts”,”Notes”,”Calendar”,”Tasks” -DeleteContent

The explaination of this command is as below:

  • Export-Mailbox – this is the powershell command to export the mailbox
  • -Identity “alias” – this is the “alias” of the Exchange Mailbox you want to export
  • -PSTFolderPath C:MAILARCHIVES – this is the location your PST will be exported to
  • -EndDate “01/01/2015” – when you want to export up to
  • -ExcludeFolders – The items you may want to exclude from export – remove or add where applicable
    • “Contacts”,”Drafts”,”Notes”,”Calendar”,”Tasks”
  • -DeleteContent – Deletes the mailbox items after export

That is it, create your custom command for your requirements and run it in EMS.

Feedback

If you have any questions or comments on this guide, please feel free to leave us a message below.

How to export an Exchange Mailbox using Powershell (Exchange Management Shell) 1

About Post Author

A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over 12 years! IT expert in multiple areas for over 22 years. Sharing experience and knowledge whenever possible! Making IT Happen.
Click to rate this post!
[Total: 0 Average: 0]

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 453 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.


Leave us a message...

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

Adobe Reader DC version 2001 Previous post Adobe Reader DC version 1500820082 Released
Java MSI Next post Java 8 Update 51 Released – MSI and Offline Installer