Skip to content

Exchange Online

Set-RoomMailboxPermission.ps1

View in Gitea

Synopsis: Configures calendar permissions and processing settings on the specified room mailboxes.

For each mailbox identity supplied (directly or via the pipeline): - Grants the Default user LimitedDetails access on the mailbox calendar folder. - Configures calendar processing so the organizer's name is added to the meeting subject, and neither comments nor the subject are stripped from booking requests.

Requires an existing Exchange Online session (Connect-ExchangeOnline) - this script does not connect or disconnect itself.

Parameters:

Parameter Description
Identity One or more room mailbox identities (UPN, email address, or Exchange Identity) to configure. Accepts pipeline input, e.g. piped straight from Get-Mailbox.
CalendarFolderName Name of the mailbox's Calendar folder, in the mailbox's own language. Defaults to "Calendar" (English). Use this for non-English mailboxes, e.g. "Kalendar" for Czech. The actual name for a given mailbox can be listed with: Get-MailboxFolderStatistics -Identity -FolderScope Calendar | Where-Object { $_.FolderType -eq 'Calendar' } | Select-Object Name

Examples:

.\Set-RoomMailboxPermission.ps1 -Identity room1@contoso.com
Configures a single room mailbox.
Get-Mailbox -ResultSize Unlimited | Where-Object { $_.ResourceType -eq 'Room' } | .\Set-RoomMailboxPermission.ps1
Configures every room mailbox in the tenant, piped in from Get-Mailbox.
Get-Mailbox -ResultSize Unlimited | Where-Object { $_.ResourceType -eq 'Room' } | .\Set-RoomMailboxPermission.ps1 -WhatIf
Shows which room mailboxes would be changed without applying anything.
.\Set-RoomMailboxPermission.ps1 -Identity room-cz@contoso.com -CalendarFolderName 'Kalendar'
Configures a Czech-locale room mailbox whose Calendar folder is named "Kalendar".

Notes

Author: Petr Stepan Created: 2026-07-21 Version: 1.0.0 Changelog: 1.0.0 - Initial version

Requires the ExchangeOnlineManagement module, an active Exchange Online session, and an account with permission to manage mailbox folder permissions and calendar processing.