The O365 Admin Powershell Module – Part 1
Connecting to Office 365 Services
If you’re already responsible for managing your company’s Office 365 tenant, then you know that sometimes you need to employ Powershell to get things done. The Office 365 Admin Center is pretty capable of handling your basic admin tasks and it’s getting better all the time, but sometimes you need to do something outside of the box or manage settings in bulk. Powershell is the way to get it done.
Exchange Online has the most manageability of all the Office 365 products and since it’s built on Exchange it is fully exposed to Powershell management. The instructions for connecting to Exchange Online in Powershell can be found here. This process is similar to how Exchange would be managed in an on-premise installation. You initialize a remote session to an Exchange server, pass credentials, and then import the commands from that session into your environment.
That’s quite a bit of typing, and this stinks if you have to come in every morning and type this in. Not to mention that this only connects you to Exchange Online. If you want to manage users or licensing you’ll need to connect to Azure Active Directory, and there are more commands still if you want to connect to Skype (formerly Lync) or Sharepoint Online.
The next logical step for an admin who needs to manage Office 365 tenants regularly is to add all these commands to your Powershell profile. A powershell profile script is simply a script that is launched each time you launch Powershell. This provides a way configure your shell environment and can speed up your day-to-day tasks. But why should every admin who manages Office 365 perform the same repetitive tasks and re-create the same profile scripts that every other Office 365 admin has created?
Enter the Office 365 Admin module. With this module you can quickly and easily connect to Exchange Online and all other Office 365 services. Instead of all the commands above, you can now simply type:
You can pick and choose any of the services you would like to connect to, and the service names also support tab-completion for ease of use.