Set-CMAssetIntelligenceClass

修改 Asset Intelligence 硬體清查報告類別。

語法

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

Description

Set-CMAssetIntelligenceClass Cmdlet 會修改 Asset Intelligence 硬體清查報告類別。 硬體清查用戶端代理程式會根據您啟用的 Asset Intelligence 硬體清查報告類別,從 Configuration Manager 用戶端收集清查。

您只能在階層中的頂層月臺修改已清查軟體的分類資訊,包括產品名稱、廠商、軟體類別和軟體系列。 修改預先定義軟體的分類資訊之後,軟體的驗證狀態會從 [已驗證] 變更為 [使用者定義]。

注意事項

從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet,例如 PS XYZ:\>。 如需詳細資訊,請 參閱開始使用

範例

範例 1:變更 Asset Intelligence 硬體清查報告類別

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

此命令會啟用名為 SMS_InstalledExecutable 的報告類別,並停用名為 MS_InstalledSoftware 的報告類別。

範例 2:啟用所有 Asset Intelligence 硬體清查報告類別

PS XYZ:\> Set-CMAssetIntelligenceClass -EnableAllReportingClass

此命令會啟用所有 Asset Intelligence 硬體清查報告類別。

參數

-Confirm

執行 Cmdlet 之前提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-DisableReportingClass

指定要停用的 Asset Intelligence 報告類別陣列。 此參數可接受的值為:

  • SMS_AutoStartSoftware
  • SMS_BrowserHelperObject
  • SMS_InstalledExecutable
  • SMS_InstalledSoftware
  • SMS_SoftwareShortcut
  • SMS_SoftwareTag
  • SMS_SystemConsoleUsage
  • SMS_SystemConsoleUser
  • SoftwareLicensingProduct
  • SoftwareLicensingService
  • Win32_USBDevice
類型:ClassNameType[]
接受的值:SMS_AutoStartSoftware, SMS_BrowserHelperObject, SMS_InstalledExecutable, SMS_InstalledSoftware, SMS_SoftwareShortcut, SMS_SystemConsoleUsage, SMS_SystemConsoleUser, SoftwareLicensingProduct, SoftwareLicensingService, Win32_USBDevice, SMS_SoftwareTag
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DisableWildcardHandling

此參數會將通配符視為常值字元值。 您無法將其與 ForceWildcardHandling 結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-EnableAllReportingClass

表示已啟用所有 Asset Intelligence 報告類別。

類型:SwitchParameter
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-EnableReportingClass

指定要啟用的 Asset Intelligence 報告類別陣列。 此參數可接受的值為:

  • SMS_AutoStartSoftware
  • SMS_BrowserHelperObject
  • SMS_InstalledExecutable
  • SMS_InstalledSoftware
  • SMS_SoftwareShortcut
  • SMS_SoftwareTag
  • SMS_SystemConsoleUsage
  • SMS_SystemConsoleUser
  • SoftwareLicensingProduct
  • SoftwareLicensingService
  • Win32_USBDevice
類型:ClassNameType[]
接受的值:SMS_AutoStartSoftware, SMS_BrowserHelperObject, SMS_InstalledExecutable, SMS_InstalledSoftware, SMS_SoftwareShortcut, SMS_SystemConsoleUsage, SMS_SystemConsoleUser, SoftwareLicensingProduct, SoftwareLicensingService, Win32_USBDevice, SMS_SoftwareTag
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ForceWildcardHandling

此參數會處理通配符,並可能導致非預期的行為 (不建議) 。 您無法將其與 DisableWildcardHandling 結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

System.Object