Exchange online… I’ll be honest… In my many years in IT, I avoided Exchange like the plague! I’ve seen many colleagues crumble under it’s weight! (Sounds more dramatic don’t you think?) But with Office 365 being all the rage now, I guess I better get with the program, so here goes…
So there was recently a bit of a commotion on twitter about sharing level 200 stuff. We all were beginners at some point, so if you already know this then I guess this blog wasn’t meant for you… 😉
So how do you go about creating a mailbox for a user in Office 365 Exchange? Using PowerShell of course… Hehe…
Ok there are modules for AzureAD and MSOnline and stuff but where are the Exchange Online cmdlets? That was my first step. Luckily I found an excellent blog on how to go about doing this. The rest after that is pretty straightforward…
Looking at the cmdlet I wanted to figure out if there were any mandatory attributes.
(get-command New-OnlineMailbox).ParameterSets.Parameters | Out-GridView
No mandatory parameter(s)… I’ll just stick with the basics on this one:
Feel free to add any other parameters you need… 😉
You’ll need Global Admin credentials to create your Mailbox Online so have that at hand…
Once the Mailbox is created you’ll need to assign a license to the user. I’m using the MSOL cmdlet for this just because it’s still around (and way easier to implement). Having said that here’s a link to how it’s done using AzureAD cmdlets. That practical365 site is definitely a good source for anything Office365 related! 😉 Oh and the book is definitely worth having as a reference too!
Ok here’s the script:
So that’s how to get started with Exchange Online.
I’ll leave you with a lil’ thought from the Austrian Oak himself…
Hope it’s worth something to you,