Connect to Office 365 using Windows Powershell

Open Windows Powershell and run the following commands:

$LiveCred = Get-Credential

Type your Office 365 administrator account and click ‘Ok’

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session

Leave a Reply

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

Are you a human? *