CmdID / PowerShell / Cmdlets / New
New-ComplianceSearch
Use the New-ComplianceSearch cmdlet to create compliance searches in Exchange Server 2016 or later and in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 20 parameters Its page in the reference
Parameters
Show its 20 parameters
-NameThe Name parameter specifies the name of the compliance search.-AllowNotFoundExchangeLocationsEnabledThe AllowNotFoundExchangeLocationsEnabled parameter specifies whether to include mailboxes other than regular user mailboxes in the compliance search.-CaseThe Case parameter specifies the name of an eDiscovery Standard case to associate the new compliance search with.-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 an optional 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.-LogLevelThis 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.-SharePointLocationThe SharePointLocation parameter specifies the SharePoint sites to include.-SharePointLocationExclusionThis parameter is reserved for internal Microsoft use.-StatusMailRecipientsThis parameter is reserved for internal Microsoft use.-WhatIf, -wiThis parameter is reserved for internal Microsoft use.