Commands › Exchange Online

Set-CalendarNotification

Exchange Online ExchangeOnlineManagement Set-*

The Set-CalendarNotification cmdlet allows users to set text message notification options for calendar events in their own calendar. By default, the MyTextMessaging end-user role gives access to this cmdlet, so admins can't configure text messaging notification for calendar events in user calendars. **Note**: This cmdlet is deprecated in Exchange Online PowerShell. The text message notification service is discontinued in Microsoft 365.

Quick start script

# Set-CalendarNotification — 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-CalendarNotification
$before | Format-List

# 3. Make the change (dry run first)
Set-CalendarNotification -Identity <MailboxIdParameter> -WhatIf
Set-CalendarNotification -Identity <MailboxIdParameter>

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

Syntax

Set-CalendarNotification [-Identity] <MailboxIdParameter>
 [-CalendarUpdateNotification <Boolean>]
 [-CalendarUpdateSendDuringWorkHour <Boolean>]
 [-Confirm]
 [-DailyAgendaNotification <Boolean>]
 [-DailyAgendaNotificationSendTime <TimeSpan>]
 [-DomainController <Fqdn>]
 [-IgnoreDefaultScope]
 [-MeetingReminderNotification <Boolean>]
 [-MeetingReminderSendDuringWorkHour <Boolean>]
 [-NextDays <Int32>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity MailboxIdParameter yes The Identity parameter specifies the mailbox that you want to modify. You can use any value that uniquely identifies the mailbox. For example:
-CalendarUpdateNotification Boolean The CalendarUpdateNotification parameter specifies whether calendar update text message notifications are sent to the user's mobile device. Valid values are:
-CalendarUpdateSendDuringWorkHour Boolean The CalendarUpdateSendDuringWorkHour parameter specifies whether calendar update text notifications are sent to the user's mobile device during working hours only. Valid values are:
-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.
-DailyAgendaNotification Boolean The DailyAgendaNotification parameter specifies whether daily agenda text message notifications are sent to the user's mobile device. Valid values are:
-DailyAgendaNotificationSendTime TimeSpan The DailyAgendaNotificationSendTime parameter specifies the time to send daily agenda text message notifications to the user's mobile device.
-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...
-IgnoreDefaultScope SwitchParameter This parameter is reserved for internal Microsoft use.
-MeetingReminderNotification Boolean The MeetingReminderNotification parameter specifies whether meeting reminder text message notifications are sent to the user's mobile device. Valid values are:
-MeetingReminderSendDuringWorkHour Boolean The MeetingReminderSendDuringWorkHour parameter specifies whether meeting reminder text message notifications are sent to the user's mobile device during working hours only. Valid values are:
-NextDays Int32 The NextDays parameter specifies how many days should be sent in the daily agenda text message notification to the user's mobile device. A valid value is an integer between 1 and 7. The default value is 1.
-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.