How to export mailbox to pst from O365 by PowerShell

Volkov Aleksandr 20 Reputation points
2023-03-07T13:26:43.8033333+00:00

Hello everyone,

We have to export user`s mailbox to pst automatically. We use exchange online and cannot use cmdlet "New-MailboxExportRequest" is available only on-premise server. Also i tried do it by ediscovery. By using "New-ComplianceSearchAction" cmdlet i created searce by i don not know how i can export it by Powershell.

Are they any options to do export use Poweshell?

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Windows for business | Windows Server | User experience | PowerShell

Answer accepted by question author
Vasil Michev 127.6K Reputation points MVP Volunteer Moderator
2023-03-07T13:33:04.5866667+00:00

You cannot directly export to PST, so you have to use eDiscovery/Content search indeed. Once the search is complete and the export action done, you can use the method outlined here: https://techcommunity.microsoft.com/t5/microsoft-365/export-to-pst-via-powershell/m-p/193934/highlight/true#M14407

Do note that this is not an officially supported solution, so use at your own risk.

Was this answer helpful?

2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Furkan Akyol 5 Reputation points
    2024-03-20T13:25:35.2366667+00:00

    I examined the problem and came to the conclusion that I could fix it via the panel, not with Powershell. You can find the solution from the link below. I hope that will be useful.

    https://medium.com/@furkanakyol/microsoft-365-panel-%C3%BCzerinden-users-pst-export-nas%C4%B1l-yap%C4%B1l%C4%B1r-1318b43f5ecc

    Do note that this is not an officially supported solution, so use at your own risk.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.