Office 365 PowerShell Basics

To connect to Office 365 you need to download and install “Microsoft Online Services Sign-in Assistant” and to know how to do it. There are some tips.

Prerequisite software

Powershell 3.0 here:

Microsoft Online Services Sign-in Assistant:

32 bit –

64 bit –

Office 365 Cmdlets

32 bit –

64 bit –

To Connect
You can connect to Office 365 tenant through PowerShell using following cmdlets:

Import-Module MSOnline
Connect-MsolService -Credential $cred
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $cred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Remove-PSSession $Session

Leave a Comment

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