Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Last active August 29, 2015 14:22
Show Gist options
  • Save Aldaviva/42094e3608ea71f04eef to your computer and use it in GitHub Desktop.
Save Aldaviva/42094e3608ea71f04eef to your computer and use it in GitHub Desktop.
Exchange bulk room creation with Blue Jeans Relay integration
$RoomCsv = Import-Csv .\rooms.csv
foreach ($room in $RoomCsv){
Write-Host "Adding $($room.id)..."
New-Mailbox -Name "$($room.name)" -Room -UserPrincipalName "$($room.id)"
Add-MailboxFolderPermission -Identity "$($room.id):\Calendar" -User relay -AccessRights Reviewer
Set-CalendarProcessing -Identity "$($room.id)" -DeleteComments $false -DeleteSubject $false -AddOrganizerToSubject $false -RemovePrivateProperty $false
}
name id
Boardroom [email protected]
Huddle Room [email protected]
Yet Another Room [email protected]

This script takes a CSV of desired room resources. It will create each room in Exchange 2010/2013 and set the required properties to allow the room to be integrated with Blue Jeans Relay.

This script does not provision the corresponding Endpoints in Relay. You can use the Bulk Upload feature or REST API for automated Relay provisioning.

Usage

  1. Save createrooms.ps1 and rooms.csv to a directory that you can access from your Exchange Management Shell instance.
  2. Edit rooms.csv to contain your desired rooms, where the first column will be the friendly name and the second column is the SMTP email address of the mailbox.
  3. If your Relay mailbox user is named something other than the default relay, modify createrooms.ps1 accordingly.
  4. Open Exchange Management Shell and cd to the directory where you saved the files above.
  5. Run .\createrooms.ps1.
  6. Behold your new room list in Exchange Admin Center > recipients > resources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment