Quick answer: Get-CalendarProcessing shows how a room or equipment mailbox handles meeting requests: whether it auto-accepts, allows conflicts, who can book it and who approves. Connect to Exchange Online, then run:
Get-CalendarProcessing -Identity "boardroom@contoso.com" | Format-List
To check every room at once, pipe the rooms in: Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited | Get-CalendarProcessing. To change a setting, use Set-CalendarProcessing.
What is Get-CalendarProcessing?
Get-CalendarProcessing is an Exchange PowerShell cmdlet that shows the calendar processing options for resource mailboxes: the Calendar Attendant, the resource booking assistant and calendar configuration. It works in Exchange Online and in on-premises Exchange (2010 through Exchange Server SE).
It only reads settings. Microsoft notes that these settings can be changed only on resource mailboxes.
Syntax
Get-CalendarProcessing
[-Identity] <MailboxIdParameter>
[-DomainController <Fqdn>]
[-ReadFromDomainController]
[-ResultSize <Unlimited>]
[<CommonParameters>]
Parameters
| Parameter | What it does |
|---|---|
-Identity |
The resource mailbox: name, alias, email address, DN, GUID, UPN and similar. Required. Accepts pipeline input. |
-ResultSize |
Maximum results. The default is 1000; use Unlimited for all. |
-DomainController |
On-premises only. The domain controller to read from, for example dc01.contoso.com. |
-ReadFromDomainController |
On-premises only. Reads from a domain controller in the user's domain. Needed after Set-AdServerSettings -ViewEntireForest $true, or you may read an outdated global catalog. |
Watch out: Microsoft warns that $null or a non-existent value for -Identity returns all objects. If a script passes a list of rooms, check it for blanks first.
What the output means
These are the properties people check most. Defaults are from Microsoft's Set-CalendarProcessing reference.
| Property | What it controls | Default |
|---|---|---|
AutomateProcessing |
AutoAccept books automatically by policy. AutoUpdate leaves requests tentative until a delegate decides. None turns processing off. |
AutoAccept for rooms made in Exchange Online since November 15, 2018 |
AllowConflicts |
Whether overlapping bookings are accepted. | $false |
BookingWindowInDays |
How far ahead the room can be booked (0 to 1080). | 180 |
MaximumDurationInMinutes |
Longest allowed meeting. 0 means unlimited. | 1440 (24 hours) |
AllowRecurringMeetings |
Whether recurring meetings are allowed. | $true |
EnforceSchedulingHorizon |
Whether a series that runs past the booking window is declined. | $true |
ScheduleOnlyDuringWorkHours |
Whether requests outside the room's working hours are rejected. | $false |
AllBookInPolicy |
Whether in-policy requests from everyone are approved automatically. | $true |
BookInPolicy |
Users or groups whose in-policy requests are approved automatically. | Empty |
AllRequestInPolicy / RequestInPolicy |
Who can send in-policy requests that need delegate approval. | $false / empty |
RequestOutOfPolicy |
Who can send out-of-policy requests for delegate approval. | Empty |
ResourceDelegates |
Users who approve or reject requests. | Empty |
ForwardRequestsToDelegates |
Whether requests are forwarded to the delegates. | $true |
ProcessExternalMeetingMessages |
Whether requests from outside your organization are processed. | $false |
DeleteSubject / AddOrganizerToSubject |
Whether the room's calendar replaces the subject with the organizer's name. | $true / $true |
DeleteComments |
Whether the body text of requests is removed. | $true |
On-premises, rooms created in PowerShell default to AutomateProcessing AutoUpdate, while rooms created in the Exchange admin center default to AutoAccept. Exchange Online rooms created in PowerShell before November 15, 2018 also default to AutoUpdate.
Before you start
- Permissions. Use Find the permissions required to run any Exchange cmdlet to check yours.
- Connect. For Exchange Online:
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName admin@contoso.com
On-premises, open the Exchange Management Shell.
Get-CalendarProcessing examples
1. Show every setting for one room
This is Microsoft's own example:
Get-CalendarProcessing -Identity "Room 212" | Format-List
Without Format-List you see only a few columns.
2. Show only the booking policy
Get-CalendarProcessing -Identity "boardroom@contoso.com" | Format-List AutomateProcessing,AllowConflicts,BookingWindowInDays,MaximumDurationInMinutes,AllBookInPolicy,BookInPolicy,AllRequestInPolicy,ResourceDelegates,ForwardRequestsToDelegates
3. Check every room mailbox
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited |
Get-CalendarProcessing |
Format-Table Identity,AutomateProcessing,AllowConflicts,BookingWindowInDays -AutoSize
Use EquipmentMailbox instead of RoomMailbox for equipment.
4. Find rooms that don't auto-accept
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited |
Get-CalendarProcessing |
Where-Object { $_.AutomateProcessing -ne "AutoAccept" } |
Select-Object Identity,AutomateProcessing
5. Find rooms that need a delegate's approval
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited |
Get-CalendarProcessing |
Where-Object { -not $_.AllBookInPolicy } |
Select-Object Identity,ResourceDelegates,ForwardRequestsToDelegates
6. Export every room's settings to CSV
Properties such as ResourceDelegates and BookInPolicy hold lists. Export-Csv writes a type name instead of the values unless you join them first:
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited |
Get-CalendarProcessing |
Select-Object Identity,AutomateProcessing,AllowConflicts,BookingWindowInDays,MaximumDurationInMinutes,AllBookInPolicy,
@{n="BookInPolicy";e={$_.BookInPolicy -join ";"}},
@{n="ResourceDelegates";e={$_.ResourceDelegates -join ";"}} |
Export-Csv "C:\temp\room-calendar-processing.csv" -NoTypeInformation
Keep the file before a migration or a policy change, and compare after.
Why is my room declining or forwarding requests?
Run example 1 on the room, then match the symptom:
| Symptom | Check | Change it with |
|---|---|---|
| Requests stay tentative, nobody gets an answer | AutomateProcessing is AutoUpdate or None |
-AutomateProcessing AutoAccept |
| Declined for a conflict | AllowConflicts is $false and the room is already booked |
Free the slot, or allow conflicts |
| Declined for a date months away | Start is past BookingWindowInDays |
-BookingWindowInDays 365 |
| Recurring series declined | EnforceSchedulingHorizon is $true and the series runs past the window, or AllowRecurringMeetings is $false |
Shorten the series or raise the window |
| Long meeting declined | Longer than MaximumDurationInMinutes |
Raise the limit |
| Request goes to a delegate | AllBookInPolicy is $false and the organizer isn't in BookInPolicy |
Add them to -BookInPolicy |
| External guests can't book | ProcessExternalMeetingMessages is $false |
-ProcessExternalMeetingMessages $true |
| Subject shows the organizer's name | AddOrganizerToSubject and DeleteSubject are $true |
Set both to $false |
Each fix is a Set-CalendarProcessing parameter. Our Set-CalendarProcessing guide has full examples.
FAQ
Does Get-CalendarProcessing change anything?
No. It only reads settings. Use Set-CalendarProcessing to change them.
Can I run it on a user mailbox?
It runs, but the settings matter only on room and equipment mailboxes. Microsoft notes that AutomateProcessing on a user mailbox is AutoUpdate and can't be changed.
Can I run it without -Identity?
-Identity is required. To check many rooms, pipe them in from Get-Mailbox -RecipientTypeDetails RoomMailbox as in example 3.
Why does my CSV show a type name instead of ResourceDelegates?
ResourceDelegates and BookInPolicy are lists. Join them with -join ";" in a calculated property, as in example 6.
Once your rooms book the way you want, show each room's schedule on a display outside the door with Meeting Room 365.