Creating scheduling mailboxes in Exchange Online by user without a mailbox.

Pawel Jarosz 41 Reputation points
2022-03-15T08:46:35.907+00:00

Hi,

Asked a few questions lately, like never :) But got another one.

So I am creating scheduling mailboxes for Bookings using PowerShell, spend some time (a lot!) on investigating how to do it, so will share the useful ULRs here:
Proper PowerShell cmdlet is here: https://youtu.be/V9GVWkJPSv4?t=483 the cmdlet is New-SchedulingMailbox ... wishing you luck in finding some info on the Internet about it
Deep dive on how booking works is here: https://techcommunity.microsoft.com/t5/microsoft-bookings-blog/microsoft-bookings-behind-the-scenes/ba-p/2887256 (but the cmdlet is only mentioned as for auditing, actually I've found this article after finding the cmdlet in the YT video)
Idea on publishing bookings under separate subdomain here: https://blog.markdepalma.com/?p=681
If someone is wondering about what timezone to put inthe cmdlet, it can be taken from here: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.monitor.models.timewindow.timezone?view=azure-dotnet

The thing I am struggling with now, is that this mailbox need to be created using account that has mailbox as it need to have the "BookingsMailboxCreationEnabled" set to true in the "Get-OwaMailboxPolicy". Is there a way to run New-SchedulingMailbox succesfully from an account without a mailbox?

Cheers,
Pawel

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,412 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,379 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 100.1K Reputation points MVP
    2022-03-15T11:34:02.693+00:00

    One of the reasons you are not able to find much info is because MS changed the cmdlet, previously you could use New-Mailbox -Scheduling for this task.

    Anyway, you can create them as admin as well, no need to have a mailbox or change the OWA Mailbox policy. You will need an admin with the "Mail Recipient Creation" role assigned, by default this role is available to members of Recipient Management/Organization Management. Make sure to specify the -Owner parameter when creating a mailbox via PowerShell.