Commands › Exchange Online
Set-CalendarNotification
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.