Bulk create Room Mailboxes
Exchange PowerShell Script to Bulk create Room Mailbox Databases
In this post I will show case a script I have created to Bulk create Room Mailboxes, this script was created to assist a customer to quickly create new Room Mailboxes for their new Offices.
The script will perform the following.
- Creates new Room Mailbox
- Sets the Database for the Mailbox
- Sets UPN
- Sets DisplayName and Name
- Sets a default Password
- Set to Auto Accept Meeting Invites
- Allow Conflicts set to false
- Booking Windows In Days set to 10
- Add Organizer to Subject to True
- Sets Resource Delegates
- Specify Room Capacity
An Example of the csv file used

Script used
#Script creates Room Mailboxes from csv
#http://thatlazyadmin.com
#twitter:@ShaunHardneck
###################################################################################################
Read-Host "Nerd Life"
###################################################################################################
Import-Csv .\BulkRoomMailbox.csv|%{New-Mailbox -Name $_.Name -DisplayName $_.Name -Database
$_.Database -ResourceCapacity $_.Capacity-UserPrincipalName $_.UPN -Password (ConvertTo-
SecureString $_.Password -AsPlainText -force) -Room } | %{Set-CalendarProcessing $_.Name -
AutomateProcessing AutoAccept -AllowConflicts $false -BookingWindowInDays 10 -AddOrganizerToSubject
$true -ResourceDelegates $_.Delegate}
To execute the script, navigate to the folder where the script is located and run the “BulkRoomMailbox.ps1” file.
![]()
To verify that the script has created the new “Room Mailboxes” , you can run the following cmdlets.
Get-Mailbox -RecipientTypeDetails RoomMailbox

The same can be viewed in the Exchange Admin Console.

Download Script and CSV BulkRoomMailbox
#ThatLazyAdmin


Hi,
I know this is a bit old however, is it necessary to put in a password? I thought Room Mailboxes are basically disabled user accounts.
Thanks.
that is correct yes and when you create them via the Gui the password option is greyed out. In the script you can leave the password section blank as its not needed.