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

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

We need to do a compliance project. We want to export the search results to a specific location through PowerShell, and then download them locally. 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!

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,464 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
0 comments No comments
{count} votes