Set-CMAssetIntelligenceClass

修改资产智能硬件清单报告类。

语法

Set-CMAssetIntelligenceClass
   [-EnableAllReportingClass]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMAssetIntelligenceClass
   [-DisableReportingClass <ClassNameType[]>]
   [-EnableReportingClass <ClassNameType[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

说明

Set-CMAssetIntelligenceClass cmdlet 修改资产智能硬件清单报告类。 硬件清单客户端代理根据启用的资产智能硬件清单报告类从Configuration Manager客户端收集清单。

您可以修改分类信息(包括产品名称、供应商、软件类别和软件系列),以便仅在层次结构中的顶层站点上列出清单的软件。 修改预定义软件的分类信息后,软件的验证状态将从“已验证”更改为“用户定义”。

注意

从Configuration Manager站点驱动器运行Configuration Manager cmdlet,例如 PS XYZ:\>。 有关详细信息,请参阅 入门

示例

示例 1:更改资产智能硬件清单报告类

PS XYZ:\> Set-CMAssetIntelligenceClass -EnableReportingClassName SMS_InstalledExecutable -DisableReportingClassName MS_InstalledSoftware

此命令启用名为 SMS_InstalledExecutable 的报告类,并禁用名为 MS_InstalledSoftware 的报告类。

示例 2:启用所有资产智能硬件清单报告类

PS XYZ:\> Set-CMAssetIntelligenceClass -EnableAllReportingClass

此命令启用所有资产智能硬件清单报告类。

参数

-Confirm

提示你在运行 cmdlet 之前进行确认。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableReportingClass

指定要禁用的资产智能报告类数组。 此参数可接受的值为:

  • SMS_AutoStartSoftware
  • SMS_BrowserHelperObject
  • SMS_InstalledExecutable
  • SMS_InstalledSoftware
  • SMS_SoftwareShortcut
  • SMS_SoftwareTag
  • SMS_SystemConsoleUsage
  • SMS_SystemConsoleUser
  • SoftwareLicensingProduct
  • SoftwareLicensingService
  • Win32_USBDevice
Type:ClassNameType[]
Accepted values:SMS_AutoStartSoftware, SMS_BrowserHelperObject, SMS_InstalledExecutable, SMS_InstalledSoftware, SMS_SoftwareShortcut, SMS_SystemConsoleUsage, SMS_SystemConsoleUser, SoftwareLicensingProduct, SoftwareLicensingService, Win32_USBDevice, SMS_SoftwareTag
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableWildcardHandling

此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnableAllReportingClass

指示已启用所有资产智能报告类。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-EnableReportingClass

指定要启用的资产智能报告类数组。 此参数可接受的值为:

  • SMS_AutoStartSoftware
  • SMS_BrowserHelperObject
  • SMS_InstalledExecutable
  • SMS_InstalledSoftware
  • SMS_SoftwareShortcut
  • SMS_SoftwareTag
  • SMS_SystemConsoleUsage
  • SMS_SystemConsoleUser
  • SoftwareLicensingProduct
  • SoftwareLicensingService
  • Win32_USBDevice
Type:ClassNameType[]
Accepted values:SMS_AutoStartSoftware, SMS_BrowserHelperObject, SMS_InstalledExecutable, SMS_InstalledSoftware, SMS_SoftwareShortcut, SMS_SystemConsoleUsage, SMS_SystemConsoleUser, SoftwareLicensingProduct, SoftwareLicensingService, Win32_USBDevice, SMS_SoftwareTag
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ForceWildcardHandling

此参数处理通配符,并可能导致意外行为 (不建议) 。 不能将其与 DisableWildcardHandling 结合使用。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

显示在 cmdlet 运行时发生的情况。 cmdlet 不会运行。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

输入

None

输出

System.Object