Commands › Exchange Online

Add-ServerMonitoringOverride

Exchange Online ExchangeOnlineManagement Add-*

Override the thresholds and parameters of managed availability probes, monitors, and responders on Exchange servers.

Quick start script

# Add-ServerMonitoringOverride — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Add-ServerMonitoringOverride -Identity <String> -ApplyVersion <Version> -ItemType <MonitoringItemTypeEnum> | Format-List

# 3. Export for evidence / drift tracking
Add-ServerMonitoringOverride | Export-Clixml .\ServerMonitoringOverride-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

ApplyVersion

Add-ServerMonitoringOverride [-Identity] <String> -ApplyVersion <Version> -ItemType <MonitoringItemTypeEnum> -PropertyName <String> -PropertyValue <String> -Server <ServerIdParameter>
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Duration

Add-ServerMonitoringOverride [-Identity] <String> -ItemType <MonitoringItemTypeEnum> -PropertyName <String> -PropertyValue <String> -Server <ServerIdParameter>
 [-Duration <EnhancedTimeSpan>]
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-Identity String yes The Identity parameter specifies the identity of the monitoring item that you want to override. This parameter uses the syntax `HealthSet\MonitoringItemName[\TargetResource]`. The values are case sensitive. For...
-ApplyVersion Version yes The ApplyVersion parameter specifies the version of Exchange that gets the override. If you update Exchange to a newer version (for example, you apply a Cumulative Update or Service Pack), the override is no longer...
-ItemType MonitoringItemTypeEnum yes The ItemType parameter specifies the server item type for the property that you want to override. Valid value are:
-PropertyName String yes The PropertyName parameter specifies the server property that you want to override.
-PropertyValue String yes The PropertyValue parameter specifies the new value for the server property that you want to override.
-Server ServerIdParameter yes The Server parameter specifies the Exchange server where you want to add the monitoring override. You can use any value that uniquely identifies the server. For example:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-Duration EnhancedTimeSpan The Duration parameter specifies the length of time that the override is active.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.