Commands › Exchange Online

Set-MailboxCalendarFolder

Exchange Online ExchangeOnlineManagement Set-*

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)

ParameterTypeRequiredWhat it controls
-Identity MailboxFolderIdParameter yes The Identity parameter specifies the calendar folder that you want to modify. The syntax is `MailboxID:\ParentFolder[\SubFolder]`.
-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.
-DetailLevel DetailLevelEnumType The DetailLevel parameter specifies the level of calendar detail that's published and available to anonymous users. Valid values are:
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-PublishDateRangeFrom DateRangeEnumType The PublishDateRangeFrom parameter specifies the start date of calendar information to publish (past information). Valid values are:
-PublishDateRangeTo DateRangeEnumType The PublishDateRangeTo parameter specifies the end date of calendar information to publish (future information). Valid values are:
-PublishEnabled Boolean The PublishEnabled parameter specifies whether to publish the specified calendar information. Valid values are:
-ResetUrl SwitchParameter The ResetUrl switch replaces the existing non-public URL with a new URL for a calendar that is published without being publicly searchable. You don't need to specify a value with this switch.
-SearchableUrlEnabled Boolean The SearchableUrlEnabled parameter specifies whether the published calendar URL is discoverable on the web.
-SetAsSharingSource SwitchParameter The SetAsSharingSource switch specifies whether to set the calendar folder as a sharing source. You don't need to specify a value with this switch.
-SharedCalendarSyncStartDate DateTime This parameter is available only in the cloud-based service.
-UseHttps SwitchParameter The UseHttps switch specifies whether to use HTTPS for the published URL of the calendar folder. You don't need to specify a value with this switch.
-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.