Issue
We provisioned and migrated our rooms and resource objects as user objects in O365, how do we convert these objects back to a room or resource?
Solution
To convert any regular (user) mailbox to a resource mailbox, use the Set-Mailbox cmdlet in PowerShell. You also need to provide the appropriate Type parameter, i.e. Room or Equipment, depending on the type of resource mailbox you want to get.
For example, the cmdlet below converts a regular mailbox to a room mailbox:
Set-Mailbox <mailbox_name> -Type Room
If you want to convert a regular mailbox to an equipment mailbox, use the following cmdlet instead:
Set-Mailbox <mailbox_name> -Type Equipment
Example
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Unrestricted
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Connect-MsolService
Import-Module Msonline
Now issue the following command:
Get-Mailbox -Identity <objectname@mycompany.com> | Set-Mailbox -Type Room
Replace Room with your chosen recipient type to change its function:
Regular
Room
Equipment
Shared
You can find more information regarding these PS commands on the Microsoft web site.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center