Forum Discussion

howard-richard's avatar
howard-richard
Copper Contributor
Jul 28, 2024

How to use New-ComplianceSearchAction -Export to export results to sharepoint,download them locally?

We need to do a compliance project. We want to export the search results to a specific location (such as SharePoint) through PowerShell, and then download them locally. How do I use the PowerShell command New-ComplianceSearchAction -Export to export search results to sharepoint 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 (such as SharePoint) , and how to download them locally.


Any help or guidance would be greatly appreciated!

  • aditya9074's avatar
    aditya9074
    Copper Contributor

    I need help to download data from eDiscovery premium export. I get the download URL using Graph API from the export. But downloading works with small file size. For large file it always fails. Please point me to right direction. Thanks!

  • You cannot export to SPO site, just to a local drive. The example above is configuring the type of export for SPO data, it's not designating the export location.

Resources