- Go to the Start menu and search for Windows PowerShell (PowerShell should already be installed on your computer).
- Start PowerShell under an administrator context (right-click and select Run as administrator).
- Run the following PowerShell commands (one at a time):
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection