Connect to Office 365 and most related services and get ready to administer all services.
The commandlet supports saving your administrative credentials in a safe manner so that it can be used in unattended files
Allows Powershell administration of : O365, Azure AD , Azure RMS, Exchange Online, SharePoint Online including PNP Powershell

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Connect-O365 -RequiredVersion 1.6.3

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Jos Verlinde [MSFT]



O365 RMS 'Exchange Online' 'SharePoint 'Skype for Business' 'PnP-Powershell' 'Office 365'


global:Store-myCreds global:Get-myCreds Import-DataFile


This script has no dependencies.

Release Notes

V1.6.3  Add progress bars
V1.6.2  Resolve multiple Aliases per parameter bug on some PS flavors,
V1.6.1  add test for Sign-in Assistant,Add pro-acive check for modules during administration.
V1.6.0  Publish to Github
v1.5.9  update install OS version match logic to use [System.Environment]::OSVersion.Version, correct DefaultParameterSetName=”Admin", Add -test option to check correct installation
V1.5.8  Seperate configuration download info from script, Retrieve Module info from github.
V1.5.7  Update to SPO shell build : 5111 1200 (March 2016)
v1.5.6  Add -close parameter and fixed parameter sets, added inline help to parameters
v1.5.5  Fix Language for MSOnline / AAD module
v1.5    Add installation of dependent modules
v1.4    Correct bug wrt compliance search, remove prior created remote powershell sessions
V1.3    Add dependend module information
V1.2    Add try-catch for SPO PNP Powershell, as that is less common
V1.1    Initial publication to scriptcenter

Version History

Version Downloads Last updated
1.7.9 6,677 10/24/2016
1.7.8 840 10/8/2016
1.7.7 775 10/8/2016
1.7.6 775 10/8/2016
1.7.5 790 9/29/2016
1.7.2 804 9/21/2016
1.7.1 795 9/18/2016
1.7 785 9/12/2016
1.6.5 974 6/10/2016
1.6.3 (current version) 886 4/26/2016
1.6.2 795 4/26/2016
1.6.1 779 4/26/2016
1.5.7 798 4/18/2016
1.5.6 454 4/4/2016
1.4 482 2/8/2016
1.1 399 1/21/2016
Show less