Connecting to SCC

July 10, 2019 | 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
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking

Having an access denied error? Try connecting with modern authentication

Feedback or Help?

Should you have one, click here

Boring Ads. Pardon me :)