CmdID / PowerShell / Cmdlets / Set
Set-ComplianceSearch
Use the Set-ComplianceSearch cmdlet to modify non-running compliance searches in Exchange Server 2016 or later and in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 27 parameters Its page in the reference
Parameters
Show its 27 parameters
-IdentityThe Identity parameter specifies the compliance search that you want to modify.-AddExchangeLocationThe AddExchangeLocation parameter specifies the mailboxes to add to the list of included mailboxes when you aren't using the value All for the ExchangeLocation parameter.-AddExchangeLocationExclusionThis parameter specifies the mailboxes to add to the list of excluded mailboxes when you use the value All for the ExchangeLocation parameter.-AddSharePointLocationThe AddSharePointLocation parameter specifies the SharePoint sites to add to the list of included sites when you aren't using the value All for the SharePointLocation parameter.-AddSharePointLocationExclusionThis parameter is reserved for internal Microsoft use.-AllowNotFoundExchangeLocationsEnabledThe AllowNotFoundExchangeLocationsEnabled parameter specifies whether to include mailboxes other than regular user mailboxes in the compliance search.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-ContentMatchQueryThe ContentMatchQuery parameter specifies a content search filter.-DescriptionThe Description parameter specifies a description for the compliance search.-ExchangeLocationThe ExchangeLocation parameter specifies the mailboxes to include.-ExchangeLocationExclusionThis parameter specifies the mailboxes to exclude when you use the value All for the ExchangeLocation parameter.-ForceThe Force switch hides warning or confirmation messages.-HoldNamesThe HoldNames parameter specifies the content locations placed on hold in the specified eDiscovery case are searched.-IncludeOrgContent-IncludeUserAppContentThe IncludeUserAppContent parameter specifies that you want to search the cloud-based storage location for users who don't have a regular Microsoft 365 user account in your organization.-LanguageThe Language parameter specifies the language for the compliance search.-NameThis parameter is reserved for internal Microsoft use.-PublicFolderLocationThe PublicFolderLocation parameter specifies that you want to include all public folders in the search.-RefinerNamesThis parameter is reserved for internal Microsoft use.-RemoveExchangeLocationThe RemoveExchangeLocation parameter specifies the mailboxes to remove from the list of included mailboxes when you aren't using the value All for the ExchangeLocation parameter.-RemoveExchangeLocationExclusionThis parameter specifies the mailboxes to remove from the list of excluded mailboxes when you use the value All for the ExchangeLocation parameter.-RemovePublicFolderLocationThis parameter is reserved for internal Microsoft use.-RemoveSharePointLocationThe RemoveSharePointLocation parameter specifies the SharePoint sites to remove from the list of included sites when you aren't using the value All for the SharePointLocation parameter.-RemoveSharePointLocationExclusionThis parameter is reserved for internal Microsoft use.-SharePointLocationThe SharePointLocation parameter specifies the SharePoint sites to include.-SharePointLocationExclusionThis parameter is reserved for internal Microsoft use.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.