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 

The script will work natively in PowerShell 2.0+

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


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




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

Post navigation


  • 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 ( ). 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>