Tip: a few useful PowerShell scripts for Exchange and Office 365 Admins
Published Oct 06 2016 02:16 PM 22.9K Views

Recently there has been some helpful activity over on the Microsoft Script Center for Exchange and Office 365 administrators. Here are 3 scripts that we wanted to call out, as well as a bit of an overview of what they do:

  • Install Exchange 2016 Pre-requisites.ps1 – makes it easier to install Exchange 2016 prerequisites
  • O365_Installs_Connections.ps1 – makes it easier to prepare machines from which you administer Office 365
  • O365_Logon Module – an easier way to log into Office 365 services using PowerShell

Please see specific script downloads for support options and more details.

Install Exchange 2016 Pre-requisites.ps1

This script installs and adds all of the needed software, features, roles, and server settings to a Windows Server 2012 R2 Operating System in preparation for an Exchange 2016 installation. No more looking for which roles or which required software to install. Simply launch this script, select an option, and it goes out to the Internet, gets the installs, silently completes them, and adds all of the required roles and features. After a reboot, you can then install Exchange 2016.



This script simplifies IT administrators installs for all the required additional software/modules for a proper Office 365 PowerShell connection experience. Included in this script is a text based menu with options for creating connections to the different Office 365 services. Due to the fact that some installs are .exe downloads, some are .msi installs, and some are from a .zip file, each install can be slightly different. You can find additional information on how to use this ps1 file in this blog post.


O365_Logon Module

This is a PowerShell module, written to quickly log into any or all the Office 365 services with a simple verb-noun CMDLet format.

  • Connect-CCO – connect to the online Compliance Center
  • Connect-EXO – connect to Exchange online
  • Connect-SPO – connect to SharePoint Online
  • Connect-SfbO – connect to Skype for Business Online
  • Connect-O365 – connect to all four services with one CMDLet

With this installed onto your local client machine, with a single CMDLet, all the steps to log into Office 365 are combined for you. You just have to put in the proper credentials and PowerShell does all the work. Additional information on how to use this module is in this blog post.



There you have it; a few fast, simple ways to help you get your job done a little bit easier and a little bit quicker.

And – this goes without saying – please validate that things will work in your environment!

Mike O'Neill

Version history
Last update:
‎Jul 01 2019 04:28 PM
Updated by: