Set-CMAssetIntelligenceClass
修改 Asset Intelligence 硬體清查報告類別。
Syntax
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 之前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableReportingClass
指定要停用的 Asset Intelligence 報告類別陣列。 此參數可接受的值為:
- 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
表示已啟用所有 Asset Intelligence 報告類別。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableReportingClass
指定要啟用的 Asset Intelligence 報告類別陣列。 此參數可接受的值為:
- 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
相關連結
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應