Commands › Exchange Online

Remove-ServerMonitoringOverride

Exchange Online ExchangeOnlineManagement Remove-*

Remove a managed availability local server override that is configured for a probe, monitor or responder.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-ServerMonitoringOverride
$before | Format-List

# 3. Make the change (dry run first)
Remove-ServerMonitoringOverride -Identity <String> -ItemType <MonitoringItemTypeEnum> -PropertyName <String> -WhatIf
Remove-ServerMonitoringOverride -Identity <String> -ItemType <MonitoringItemTypeEnum> -PropertyName <String>

# 4. Verify and diff
$after = Get-ServerMonitoringOverride
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-ServerMonitoringOverride [-Identity] <String> -ItemType <MonitoringItemTypeEnum> -PropertyName <String> -Server <ServerIdParameter>
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Identity String yes The Identity parameter specifies the monitoring item that was overridden. The value is in the form of HealthSet\\MonitoringItem or HealthSet\\MonitoringItem\\TargetResource.
-ItemType MonitoringItemTypeEnum yes The ItemType parameter specifies the item type of the override that you want to remove. It can be any of the following values:
-PropertyName String yes The PropertyName parameter specifies the property for the override you want to remove.
-Server ServerIdParameter yes The Server parameter specifies the Exchange server that contains the override that you want to remove. 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.
-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.