Get-ScannerConfiguration
获取 Microsoft Purview 信息保护扫描程序的配置设置。
语法
Get-ScannerConfiguration []
说明
Get-ScannerConfiguration cmdlet 获取 Microsoft Purview 信息保护扫描程序的配置设置。
如果运行 Import-ScannerConfiguration,此作会自动将扫描程序配置为使其配置脱机。 因此,在从文件导入设置后运行此 Get-ScannerConfiguration cmdlet 时, OnlineConfiguration 将显示 Off。
示例
示例 1:获取 Microsoft Purview 信息保护扫描程序的配置
PS C:\> Get-ScannerConfiguration
OnlineConfiguration : On
ReportLevel : Info
LogLevel : Trace
Cluster : contoso-test
SqlInstance : localhost\sqlexpress
DatabaseName : AIPScannerUL_contoso-test
Cloud : Commercial
此命令获取 Microsoft Purview 信息保护扫描程序的当前 PowerShell 配置设置。
在此示例中,输出显示扫描程序正在使用在线配置的默认配置、 报告级别 Info,以及日志记录级别 Trace。 此时将列出集群名称、SQL 实例和数据库名称,云类型为 Commercial。
输入
None
输出
System.Object