Commands › Exchange Online
Set-Notification
> [!NOTE] > This cmdlet will be deprecated in the cloud-based service. The classic Exchange admin center was deprecated in the cloud-based service in 2023. Use the Set-Notification cmdlet to modify notification events that are shown in the notification viewer in the Exchange admin center (EAC). These notifications are related to the following events: - Mailbox moves and migrations. - Expiring and expired certificates. - Exporting mailbox content to .pst files. - Importing mailbox content from .pst files. - Restoring deleted mailboxes.
Quick start script
# Set-Notification — 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-Notification
$before | Format-List
# 3. Make the change (dry run first)
Set-Notification -Identity <EwsStoreObjectIdParameter> -NotificationEmails <MultiValuedProperty> -ProcessType <AsyncOperationType> -WhatIf
Set-Notification -Identity <EwsStoreObjectIdParameter> -NotificationEmails <MultiValuedProperty> -ProcessType <AsyncOperationType>
# 4. Verify and diff
$after = Get-Notification
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 2 parameter sets
Identity
Set-Notification [-Identity] <EwsStoreObjectIdParameter> -NotificationEmails <MultiValuedProperty>
[-Confirm]
[-DomainController <Fqdn>]
[-WhatIf]
[<CommonParameters>]
Settings
Set-Notification -NotificationEmails <MultiValuedProperty> -ProcessType <AsyncOperationType>
[-Confirm]
[-DomainController <Fqdn>]
[-WhatIf]
[<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.