Get-ProtectionAlert

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

使用 Get-ProtectionAlert Cmdlet 來檢視Microsoft Purview 合規性入口網站中的警示原則。

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

Syntax

Get-ProtectionAlert
   [[-Identity] <ComplianceRuleIdParameter>]
   [-IncludeRuleXml]
   [<CommonParameters>]

Description

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

範例

範例 1

Get-ProtectionAlert | Format-List Name,Category,Comment,NotifyUser

此範例會傳回所有警示原則的摘要清單。

範例 2

Get-ProtectionAlert -Identity "Malware campaign detected after delivery"

此範例會傳回指定之警示原則的詳細資訊。

參數

-Identity

Identity 參數會指定您想要檢視的警示原則。 您可以使用唯一識別警示原則的任何值。 例如:

  • 名稱
  • 辨別名稱 (DN)
  • GUID
Type:ComplianceRuleIdParameter
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Security & Compliance

-IncludeRuleXml

{{ Fill IncludeRuleXml Description }}

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Security & Compliance