Organize RoomFinder Rooms in Office365 with PowerShell

Having Meeting rooms available in Office365 is one thing, but organizing them by office location or floor is super helpful.

Here’s some powershell snippits to organize your rooms:



$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session
New-DistributionGroup -Name JaxConfRooms -DisplayName "Jacksonville Conf Rooms" -PrimarySmtpAddress JaxConfRooms@Test.com -RoomList
Add-DistributionGroupMember -Identity JaxConfRooms -Member Jax.LargeConfRm
Add-DistributionGroupMember -Identity JaxConfRooms -Member Jax.SmallConfRm


New-DistributionGroup -Name BedfordConfRooms -DisplayName "Bedford Conf Rooms" -PrimarySmtpAddress BedfordConfRooms@Test.com -RoomList
Add-DistributionGroupMember -Identity BedfordConfRooms -Member BedfordSmConfRoom
Add-DistributionGroupMember -Identity BedfordConfRooms -Member Cable.Car
Add-DistributionGroupMember -Identity BedfordConfRooms -Member Neuilly.MeetingRoom

New-DistributionGroup -Name WSConfRooms -DisplayName "Winston-Salem Conf Rooms" -PrimarySmtpAddress WSConfRooms@zTest.com -RoomList
Add-DistributionGroupMember -Identity WSConfRooms -Member WSConfRoom
Add-DistributionGroupMember -Identity WSConfRooms -Member WSFlexOffice1
Add-DistributionGroupMember -Identity WSConfRooms -Member WSFlexOffice2

New-DistributionGroup -Name EdmontonConfRooms -DisplayName "Edmonton Conf Rooms" -PrimarySmtpAddress EdmontonConfRooms@Test.com -RoomList
Add-DistributionGroupMember -Identity EdmontonConfRooms -Member Edmonton.BoardRoom
Add-DistributionGroupMember -Identity EdmontonConfRooms -Member Edmonton.ReadyRoom

Get-DistributionGroupMember -Identity JaxConfRooms
Get-DistributionGroupMember -Identity BedfordConfRooms
Get-DistributionGroupMember -Identity WSConfRooms
Get-DistributionGroupMember -Identity EdmontonConfRooms

Get-DistributionGroup | Where {$_.RecipientTypeDetails -eq "RoomList"} | Format-Table DisplayName,Identity,PrimarySmtpAddress

Get-Mailbox | Where-Object {$_.RecipientTypeDetails -eq "RoomMailbox"} | Format-Table DisplayName,Identity,PrimarySmtpAddress



Leave a Reply

Your email address will not be published. Required fields are marked *