Script: Connect-EXO.ps1 – Connect to Exchange Online using remote PowerShell

I recently came across an old script I wrote to simplify connecting to Exchange Online using remote PowerShell and thought I’d polish it up a little and release it in case it could help make life easier for someone else.

This page will be updated whenever new features are added to the script..

This script features a GUI that will prompt for your tenant credentials and then connect to various Office 365 services using remote PowerShell. The current version of the script allows connectivity to:

  • Exchange Online
  • Azure Active Directory
  • Office 365 Security & Compliance Center 

Requirements:
The script will work natively in PowerShell 2.0+

Usage:
There are no parameters or switches, simply execute the script:

.\Connect-EXO.ps1

Execution Policy:
The script has been digitally signed and will run just fine under a “RemoteSigned” execution policy.

Screenshots:

GUI

Connected!

Download:
I have published it to the TechNet Gallery, it can be downloaded by clicking here…

Post navigation


Comments

  • Thomas Stensitzki

    Thanks for sharing this script to simplify the EXO login.

  • Katherine Bargas

    I really like this script to connect. I also have to connect to do compliance searches (https://ps.compliance.protection.outlook.com/powershell-liveid/ ). I’m not a developer and looking at your script really understand how its making its connections but is it possible to add to connect to the URL above for the Compliance searches? Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>