Forum Discussion
howard-richard
Jul 28, 2024Copper Contributor
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 co...
gukang83035207
Jul 29, 2024Copper Contributor
VasilMichev Thanks a lot for your reply. To be honest, I want to export the data and download it in my local. Could you help to give a sample command, please?
VasilMichev
Jul 29, 2024MVP
The only supported method to download the results is via the eDiscovery tool. If you are looking to automate the process full, you can try the method outlined here: https://techcommunity.microsoft.com/t5/microsoft-365/export-to-pst-via-powershell/m-p/95007
- gukang83035207Aug 02, 2024Copper ContributorHi VasilMichev Confirm one thing, pls. In this link you mentioned that "Perhaps you can automate it via AzCopy or some other tool that takes container/token as input - you can get those via the Result property of Get-ComplianceSearchAction." Could you help to share one sample result data of Get-ComplianceSearchAction, pls? Or share some documents about it. In the Microsoft offical document I don't see the result: https://learn.microsoft.com/en-us/powershell/module/exchange/get-compliancesearchaction?view=exchange-ps . Thank you very much!
- gukang83035207Jul 30, 2024Copper Contributor
Hi VasilMichev Thanks a lot for your reply. Your information is very helpful for me! Another question, pls. The eDiscovery tool is just available in Windows system, right? I need to release the system on Linux Server. Could you help to give some suggestion, pls?
And I saw your reply like this "Perhaps you can automate it via AzCopy or some other tool that takes container/token as input - you can get those via the Result property of Get-ComplianceSearchAction." Is it available to use "AzCopy or some other tool" to do it, pls?
Thank you very much!
- VasilMichevJul 30, 2024MVPYou can find all the information on how to use AzCopy for this task in the thread I linked to.
- gukang83035207Jul 30, 2024Copper ContributorHi VasilMichev Confirm one thing, pls. If I use AzCopy, I don't need to use eDiscovery tool, right? On Linux Server.