Commands › Exchange Online

Set-Notification

Exchange Online ExchangeOnlineManagement Set-*

> [!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)

ParameterTypeRequiredWhat it controls
-Identity EwsStoreObjectIdParameter yes The Identity parameter specifies the notification event that you want to modify. You identify the notification event by its AlternativeID property value (a GUID). You can find this value by running the command:...
-NotificationEmails MultiValuedProperty yes The NotificationEmails parameter specifies the recipients for notification emails related to notification events. You can specify multiple recipients separated by commas.
-ProcessType AsyncOperationType yes The ProcessType parameter specifies the notification event type that sends notification emails to users (specified by the required NotificationEmails parameter). The users receive email notification messages for all...
-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.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-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.