O365: My “Shared Mailbox Maintenance” Script

I have been doing a lot of work recently for a client on Office 365, and as part of my role, I have to provide some first line support when required.  Some of the tasks are really basic but very repetitive – like adding user access to Shared Mailboxes.  After a while I was getting tired of searching for the same set of commands, so I decided it would save me some time if I put all my most commonly used commands for Shared Mailboxes into one big PowerShell script!

As always, make sure you do your own testing if you want to use this script to make sure that it works as intended!