Commands › Exchange Online
Set-MailboxCalendarFolder
Configure calendar publishing or sharing settings on a mailbox for the visibility of calendar information to external users. To add or modify the permissions so internal users can access the calendar, use the Add-MailboxFolderPermission or Set-MailboxFolderPermission cmdlets.
Quick start script
# Set-MailboxCalendarFolder — 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-MailboxCalendarFolder
$before | Format-List
# 3. Make the change (dry run first)
Set-MailboxCalendarFolder -Identity <MailboxFolderIdParameter> -WhatIf
Set-MailboxCalendarFolder -Identity <MailboxFolderIdParameter>
# 4. Verify and diff
$after = Get-MailboxCalendarFolder
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-MailboxCalendarFolder [-Identity] <MailboxFolderIdParameter>
[-Confirm]
[-DetailLevel <DetailLevelEnumType>]
[-DomainController <Fqdn>]
[-PublishDateRangeFrom <DateRangeEnumType>]
[-PublishDateRangeTo <DateRangeEnumType>]
[-PublishEnabled <Boolean>]
[-ResetUrl]
[-SearchableUrlEnabled <Boolean>]
[-SetAsSharingSource]
[-SharedCalendarSyncStartDate <DateTime>]
[-UseHttps]
[-WhatIf]
[<CommonParameters>]
Parameters (13)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.