Get-SensitiveInformationScanRule

此 cmdlet 仅在安全与合规中心 PowerShell 内可用。 有关更多信息,请参见 安全与合规中心 PowerShell

使用 Get-SensitiveInformationScanRule cmdlet 查看敏感信息扫描规则。

有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法

语法

Default (默认值)

Get-SensitiveInformationScanRule
    [[-Identity] <ComplianceRuleIdParameter>]
    [-Policy <PolicyIdParameter>]
    [<CommonParameters>]

说明

要在安全与合规中心 PowerShell 中使用此 cmdlet,必须分配权限。 有关详细信息,请参阅 Microsoft Purview 合规门户中的权限

示例

示例 1

Get-SensitiveInformationScanRule -Identity "HR Department Scan Rule"

此示例返回指定扫描规则的详细信息。 例如,选择了分类器,范围中的文件扩展名。

参数

-Identity

适用:安全 & 合规性

Identity 参数指定要查看的敏感信息扫描规则。 可以使用唯一标识该规则的任何值。 例如:

  • 名称
  • 可分辨名称 (DN)
  • GUID

参数属性

类型:ComplianceRuleIdParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:0
必需:False
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-Policy

适用:安全 & 合规性

Policy 参数指定为其创建此规则的按需分类扫描。

可以使用唯一标识按需分类扫描的任何值。 例如:

  • 名称
  • 可分辨名称 (DN)
  • GUID

参数属性

类型:PolicyIdParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters