August 3, 2017
| by
iaur
| posted as
Connect to M365 Services, PowerShell
Open PowerShell as an administrator then execute each line one at a time.
Set-ExecutionPolicy RemoteSigned |
$credential = Get-Credential |
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid/” -Credential $credential -Authentication “Basic” -AllowRedirection |
Import-PSSession $exchangeSession -DisableNameChecking |
Having an access denied error? Try connecting with modern authentication