Set-CMStatusReportingComponent

設定代表狀態報告元件的物件。

語法

Set-CMStatusReportingComponent
   [-ClientLogChecked <Boolean>]
   [-ClientLogFailureChecked <Boolean>]
   [-ClientLogType <StatusReportOrLogType>]
   [-ClientReportChecked <Boolean>]
   [-ClientReportFailureChecked <Boolean>]
   [-ClientReportType <StatusReportOrLogType>]
   -InputObject <IResultObject>
   [-ServerLogChecked <Boolean>]
   [-ServerLogFailureChecked <Boolean>]
   [-ServerLogType <StatusReportOrLogType>]
   [-ServerReportChecked <Boolean>]
   [-ServerReportFailureChecked <Boolean>]
   [-ServerReportType <StatusReportOrLogType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMStatusReportingComponent
   [-ClientLogChecked <Boolean>]
   [-ClientLogFailureChecked <Boolean>]
   [-ClientLogType <StatusReportOrLogType>]
   [-ClientReportChecked <Boolean>]
   [-ClientReportFailureChecked <Boolean>]
   [-ClientReportType <StatusReportOrLogType>]
   -Name <String>
   [-ServerLogChecked <Boolean>]
   [-ServerLogFailureChecked <Boolean>]
   [-ServerLogType <StatusReportOrLogType>]
   [-ServerReportChecked <Boolean>]
   [-ServerReportFailureChecked <Boolean>]
   [-ServerReportType <StatusReportOrLogType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMStatusReportingComponent
   [-ClientLogChecked <Boolean>]
   [-ClientLogFailureChecked <Boolean>]
   [-ClientLogType <StatusReportOrLogType>]
   [-ClientReportChecked <Boolean>]
   [-ClientReportFailureChecked <Boolean>]
   [-ClientReportType <StatusReportOrLogType>]
   [-ServerLogChecked <Boolean>]
   [-ServerLogFailureChecked <Boolean>]
   [-ServerLogType <StatusReportOrLogType>]
   [-ServerReportChecked <Boolean>]
   [-ServerReportFailureChecked <Boolean>]
   [-ServerReportType <StatusReportOrLogType>]
   [-SiteCode <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Set-CMStatusReportingComponent Cmdlet 會設定代表狀態報告元件的物件。 狀態報告元件物件會指定用戶端組態和伺服器元件的相關信息。

您可以設定報告元件來檢查記錄檔,並監視記錄檔中專案的嚴重性。

注意事項

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

範例

範例 1:設定狀態報告元件

此命令會設定用戶端報表類型和伺服器報表類型。

Set-CMStatusReportingComponent -SiteCode "CM1" -ClientReportType AllMilestones -ServerReportType AllMilestones

參數

-ClientLogChecked

指出是否已檢查客戶端記錄。

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

-ClientLogFailureChecked

指出是否檢查客戶端記錄檔失敗。

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

-ClientLogType

指定客戶端記錄的類型。

類型:StatusReportOrLogType
接受的值:AllMilestonesAndAllDetails, AllMilestones, ErrorAndWarningMilestones, ErrorMilestones
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ClientReportChecked

指出是否已檢查用戶端報表。

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

-ClientReportFailureChecked

指出是否檢查客戶端失敗。

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

-ClientReportType

指定報表的類型。

類型:StatusReportOrLogType
接受的值:AllMilestonesAndAllDetails, AllMilestones, ErrorAndWarningMilestones, ErrorMilestones
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

執行 Cmdlet 之前提示您確認。

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

-DisableWildcardHandling

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

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

-ForceWildcardHandling

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

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

-InputObject

指定來自另一個 Cmdlet 的物件輸出。

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

-Name

指定 Configuration Manager 中狀態報告元件的名稱。

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

-ServerLogChecked

指出是否已檢查伺服器記錄檔。

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

-ServerLogFailureChecked

指出是否檢查伺服器記錄檔失敗。

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

-ServerLogType

指定伺服器記錄類型。

類型:StatusReportOrLogType
接受的值:AllMilestonesAndAllDetails, AllMilestones, ErrorAndWarningMilestones, ErrorMilestones
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ServerReportChecked

指出是否已檢查伺服器報表。

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

-ServerReportFailureChecked

指出是否檢查伺服器報表失敗。

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

-ServerReportType

指定報表類型。

類型:StatusReportOrLogType
接受的值:AllMilestonesAndAllDetails, AllMilestones, ErrorAndWarningMilestones, ErrorMilestones
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-SiteCode

指定 Configuration Manager 月臺的月臺碼。

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

-WhatIf

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

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

輸入

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject