Exporting multiple mailboxes to PST from Office 365 RRS feed

  • Question

  • Hi

    I was wondering if anyone has a Powershell script that will enable me to export mailboxes to separate PST files from a specific OU or list of user accounts on Office 365.


    • Moved by Bill_Stewart Monday, November 23, 2015 9:47 PM This is not "scripts on demand"
    Friday, October 9, 2015 11:17 AM


All replies

  • Thanks for the reply. I already know how to export PSt files I just want to know if there is a way to export all the users from a specific OU in our active directory or all the users from a text file. This is so I don't have to select every single individual account.
    Monday, October 12, 2015 9:59 AM
  • Thanks again

    I know how to export PST files in the Office 365 admin console. I was wondering if there was a way either by powershell or creating a script that would export specific mailboxes to pst files from an OU on our active directory or if I create a text file with the mailboxes that need to exported and it would export the mailboxes in the text file.


    Monday, October 12, 2015 10:54 AM
  • Not from Office 365 but You can from local Exchange. 

    There are some third party tools that can export selected mailboxes but I have found none for PowerShell.

    You can also try EWS: https://msdn.microsoft.com/en-us/library/office/dn672316%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396


    • Proposed as answer by Mike Crowley Tuesday, October 13, 2015 9:20 PM
    Monday, October 12, 2015 11:02 AM
  • Also, a point of clarification: You cannot export mailboxes from Exchange Online to PST. You can export SEARCH results from the discovery mailbox, but not a whole mailbox (in the GUI or PowerShell). As mentioned above, you can do this from your on-prem server, and if you've got a hybrid environment, you could move the mailbox back down, and export it locally (and then move it back, if you want).

    Mike Crowley | MVP
    My Blog -- Baseline Technologies

    Tuesday, October 13, 2015 1:05 AM
  • I have already know how to use the 'in-place EDiscovery & Hold' function to export mailboxes to pst files . I don't want to look for 50 accounts to export I want something a bit more automated. So drawing the relevent mail boxes from a list on a text file. Sorry for my persistance. I can't believe that Microsoft would not allow us a way to automate it as we have to backup 500+ accounts every year.
    Tuesday, October 13, 2015 9:05 AM
  • If you're requesting a script, you are asking in the wrong place. This forum is for answering specific scripting questions, not to write scripts on request.

    The script request page is here:


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by Bill_Stewart Monday, November 23, 2015 9:47 PM
    Tuesday, October 13, 2015 2:26 PM