On your local computer, open Windows PowerShell and run the following command.
PowerShell
-
$UserCredential = Get-Credential
In the Windows PowerShell Credential Request dialog box, type your work or school account and password, and then click OK.
-
Run the following command:
PowerShell
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Run the following command:
PowerShell
Import-PSSession $Session -DisableNameChecking
PowerShell
Remove-PSSession $Session