Validate-RetentionRuleQuery

此 Cmdlet 僅適用于安全 & 性合規性 PowerShell。 如需詳細資訊,請參閱 安全 & 性合規性 PowerShell

使用 Validate-RetentionRuleQuery Cmdlet 來驗證 KQL (關鍵字查詢語言) 保留規則的內容搜尋篩選器。

如需下方<語法>一節中參數集的詳細資訊,請參閱 Exchange Cmdlet 語法

Syntax

Validate-RetentionRuleQuery
        -KqlQueryString <String>
        [<CommonParameters>]

Description

若要在安全 & 性合規性 PowerShell 中使用此 Cmdlet,您必須獲指派許可權。 如需詳細資訊,請參閱 Microsoft Purview 合規性入口網站中的權限

範例

範例 1

Validate-RetentionRuleQuery -KqlQueryString 'from:"Ann Beebe" AND subject:northwind'

此範例會驗證指定的 KQL 內容搜尋篩選。

參數

-KqlQueryString

KqlQueryString 參數會指定您要驗證的 KQL 文字搜尋字串。

此參數使用利用關鍵字查詢語言 (KQL) 格式化的文字搜尋字串或查詢。 如需詳細資訊,請 參閱關鍵字查詢語言 (KQL) 語法參考eDiscovery 的關鍵字查詢和搜尋條件

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online, Security & Compliance