Chat with us, powered by LiveChat

Blog

Back

New Exchange Online PowerShell End-Point

8 Sep 2015 by Emma Robinson

It seems that Microsoft have recently changed the URI that you need to use to remotely connect to Exchange Online using PowerShell. (Thanks Kris for bringing this to our attention!)
Instead of using
https://ps.outlook.com/powershell/

You now need to use

https://outlook.office365.com/powershell-liveid/

This means that the whole connection now looks something like this
$credential = get-credential
$ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $ExchangeSession

A great resource for building connection scripts to various Office 365 services can be found on the Microsoft Office blog.