What it is
A README with PowerShell snippets that use the Microsoft Graph and Exchange Online modules to create a room mailbox for a Microsoft Teams Rooms device, set its calendar processing, disable password expiration, set the usage location, and assign a license. One snippet handles a single account and another reads a CSV to create many.
Why use it
- Provision Teams Rooms resource accounts consistently instead of configuring each by hand.
- Create many accounts from a CSV; a sample resource-accounts.csv is included.
- Control calendar processing options such as automatic acceptance and the additional response text.
How to use it
- Install the Microsoft Graph and Exchange Online PowerShell modules and connect to both.
- Replace the sample UPN, alias, display name, license, usage location, and password with your own, or fill in a CSV like the included
resource-accounts.csv. - Run the snippet for a single account or the bulk loop:
Connect-MgGraph -Scopes "User.ReadWrite.All"
Connect-ExchangeOnline
$path = ".\resource-accounts.csv"
$RAs = Import-Csv -Path $path
# foreach loop that creates and configures each account is in the READMEPrerequisites
- Microsoft Graph PowerShell and Exchange Online PowerShell modules
- Permission to create Exchange Online room mailboxes and to manage users and licenses (the README connects with the User.ReadWrite.All scope)
- Available Teams Rooms license, such as Microsoft_Teams_Rooms_Pro
- A password for each room account; the snippets and sample CSV handle it as plain text, so generate and protect it securely