How do I use the PowerShell command New-ComplianceSearchAction -Export to export content search results to specified location and then download them locally?

Howard Ching 20 Reputation points
2024-07-29T08:40:09.85+00:00

We need to do a compliance project. We want to export the content search results to a specific location through PowerShell, and then download them locally. We run Exchange on Microsoft 365. How do I use the PowerShell command New-ComplianceSearchAction -Export to export search results to specified location and then download them locally? Both use the PowerShell command.

I saw this sample in offical documentation:

New-ComplianceSearchAction -SearchName "Case 321 All Sites" -Export -SharePointArchiveFormat SingleZip -ExchangeArchiveFormat PerUserPst

But it doesn't say how to export the results to a specific location, and how to download them locally.

Any help or guidance would be greatly appreciated!

Exchange Exchange Server Management
Windows for business Windows Server User experience PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-07-30T08:43:35.5233333+00:00

    Hi,@Howard Ching

    Thanks for posting your question in the Microsoft Q&A forum.

    You want to use the PowerShell command New-ComplianceSearchAction -Export to export the content search results to a specified location. Unfortunately, this is not possible.

    I found a script to export to PST file, please refer to this link:https://techcommunity.microsoft.com/t5/microsoft-365/export-to-pst-via-powershell/m-p/95007

    PowerShell cannot complete all functions. If you want to quickly export search results, it is recommended that you operate in the Microsoft Purview Compliance Portal.

    https://learn.microsoft.com/en-us/purview/ediscovery-export-search-results?source=recommendations

    If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.

    0 comments No comments

Your answer

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