Scripts - Office 365 Connection Scripts

The vast majority of these scripts are from the Microsoft TechNet Gallery and neither myself or Microsoft guarantee the validity of these scripts and you use them at your own risk.

=================================================================

Connection Scripts

=================================================================


Office 365 Connection Script with Modern Auth - Supports MFA (Multi-Factor Auth) 
Author - Terry Munro
Download - Link
Support article - Link
Website - Link

Info -
Script with GUI based connection to all Office 365 services that support Modern Auth and MFA
- Exchange Online
- SharePoint Online
- Skype for Business Online
- Azure AD v1
- Azure AD v2
- Azure Resource Manager
- Azure Rights Manager
- Security and Compliance Center

=================================================================

Office 365 and Azure PowerShell Connection Script (No MFA support)
Author - Terry Munro
Download - Link
Support article - Link
Website - Link

Info -
Connects to all Azure and Office 365 services, including
- 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
Also supports Proxy or No Proxy

=================================================================

Office 365 Hybrid, Azure and Local Active Directory PowerShell Connection Script
Author - Terry Munro
Download - Link
Support article - Link
Website - Link

Info -
This single script will connect to the following Local and Cloud services
- Exchange On-Premises
- Active Directory On-Premises
- 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 (DirSync)

=================================================================

PowerShell Connection script for Exchange Admins - (Exchange Online and Azure AD only)
Author - Terry Munro
Download - Link
Support article - Link
Website - Link

Info -
This PowerShell connection script is perfect for Exchange and user administration as it quickly connects to the following Office 365 Services.
- Exchange Online
- Azure AD v1.0 - (MSOL)
- Azure AD v2.0 - (Azure AD)

=================================================================