Quantcast
Channel: Habitually Good » Vaibhav
Viewing all articles
Browse latest Browse all 15

Setting the location of a room mailbox in Exchange using Powershell

$
0
0

This little thing took quite a bit to find out, so here it is for the sake of helping anyone else who runs into the same problem. I was trying to write Powershell scripts to automate creation of Meeting Room mailboxes in our Office 365 based Exchange Online environment. I ran into a small challenge where I couldn’t figure out how to set the “Location” field for the room mailbox type. And Google or Bing weren’t very helpful either.

Looking through Technet documentation, I finally figured it out. You have to use the Set-User cmdlet with the -Office parameter. So, if you wanted to set the Location of a room named ‘conference.room.1′ to “First Floor”, you would basically do this:

Set-User conference.room.1 -Office “First Floor”

Or some variation of the above (depending on what you use to identify the room).


Viewing all articles
Browse latest Browse all 15

Trending Articles