How to export an Exchange Mailbox using Powershell (Exchange Management Shell)
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:
That is it, create your custom command for your requirements and run it in EMS.

COMMENTS

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

Labels: , ,