Set-SCOMErrorReportingSetting
修改管理群組的錯誤報告設定。
Syntax
Set-SCOMErrorReportingSetting
[-PassThru]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCOMErrorReportingSetting
[-DoNotSend]
[-PassThru]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCOMErrorReportingSetting
[-PromptBeforeSending]
[-PassThru]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCOMErrorReportingSetting
[-AutomaticallySend]
[-PassThru]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-SCOMErrorReportingSetting Cmdlet 會修改管理群組的 System Center - Operations Manager 錯誤報告設定。 您可以使用 Get-SCOMErrorReportingSetting Cmdlet 來查看目前的設定。
指定下列其中一個參數來選擇您的報告設定:
- AutomaticallySend。 傳送錯誤報告。
- DoNotSend。 請勿傳送錯誤報告。
- PromptBeforeSending。 在傳送之前提示使用者。
若要退出宣告錯誤報告,請使用沒有這些參數的 Cmdlet。
根據預設,此 Cmdlet 會使用與管理群組的作用中持續性連線。
使用 SCSession 參數來指定不同的持續性連線。
您可以使用 ComputerName 和 Credential 參數,建立與管理群組的暫時連線。
如需詳細資訊,請鍵入 Get-Help about_OpsMgr_Connections
。
範例
範例 1:變更設定以一律傳送錯誤報告
PS C:\>Set-SCOMErrorReportingSetting -AutomaticallySend
此命令會變更目前管理群組的錯誤報告設定,以一律傳送錯誤報告。
參數
-AutomaticallySend
表示 Operations Manager 傳送錯誤報告。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerName
指定電腦名稱的陣列。 Cmdlet 會為這些電腦建立與管理群組的暫時連線。 您可以使用 NetBIOS 名稱、IP 位址或完整功能變數名稱, (FQDN) 。 若要指定本機電腦,請輸入電腦名稱、localhost 或句點 (.)。
System Center 資料存取服務必須在電腦上執行。 如果您未指定計算機,Cmdlet 會使用計算機進行目前的管理群組連線。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
指定管理群組連線的 PSCredential 物件。
若要取得 PSCredential 物件,請使用 Get-Credential Cmdlet。
如需詳細資訊,請鍵入 Get-Help Get-Credential
。
如果您在 ComputerName 參數中指定電腦,請使用可存取該電腦的帳戶。 預設為目前使用者。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DoNotSend
表示 Operations Manager 不會傳送錯誤報告。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
表示 Cmdlet 會建立或修改命令可以在管線中使用的物件。 根據預設,此 Cmdlet 不會產生任何輸出。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PromptBeforeSending
表示 Operations Manager 會在傳送錯誤報告之前提示核准。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
指定 Connection 物件的陣列。 若要取得 Connection 物件,請使用 Get-SCOMManagementGroupConnection Cmdlet。
Type: | Connection[] |
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 |