Updated 30/05/2017 - Added Azure AD Connect support

*** If you download it and like the script, please rate it. ***

 

This single script will make administering your Hybid Exchange / Office 365 environment a breeze.

Simply follow the guides below and update the four variables in the script and then run the script to connect to Local Active Directory and Local Exchange, as well as all Office 365 and Azure services.

Once connected, you can manage your Hybrid environment from a single PowerShell window.

Please ensure you familiarise yourself with using PowerShell prefixes BEFORE administering your Hybrid environment. The Usage Guide will provide all you need to know to edit and use the PowerShell prefixes to streamline your Hybrid administration.

 

Pre-requisites

--- Follow this guide to configure your PC and install the PowerShell modules ---
How to configure your desktop PC for Hybrid Exchange - Office 365 - Azure Administration - Link

 

Usage Guide

--- Follow this guide to edit the PowerShell Connection Script ---
How to connect to Hybrid Exchange - Office 365 - Azure AD and Local AD via PowerShell - Link

 

This single script will connect to the following Local and Cloud services

- Exchange On-Premise

- Active Directory On-Premise

- Exchange Online

- Azure AD v1.0 

- Azure AD v2.0 

- SharePoint Online 

- Skype for Business Online 

- Exchange Online Protection 

- Security and Compliance Center 

- Azure Resource Manager 

- Azure Rights Manager

- Azure AD Connect

 

Revision -

v1.0  14/05/2017     Initial script

v1.1  18/05/2017     Added Support Guides URL and TechNet download link - Removed message from cred pop-up

v1.2  30/05/2017     Added connection to Azure AD Connect (DirSync) Server

 

If you need other PowerShell connection scripts that do not support a Hybrid environment, check out my other connection scripts.

- Office 365 and Azure PowerShell Connection Script - TechNet Download

- Office 365 and Azure Connection Script with MFA (Multi-Factor Authentication) - TechNet Download

 

Start managing your Hybrid environment with my
Hybrid Office 365 Administration Pack - Including scripts and csv files 
- Link