Forum Discussion

Deleted's avatar
Deleted
Dec 05, 2017

Unable to connect to Security & Compliance center using PowerShell

Hi,

 

I unable to connect to the Security and Compliance Center using the following commands:

 

$UserCredential = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

I have successfully connected to the Security and Compliance Center before using the same method and same account (Org Mgmt in Security and Compliance Permissions and Exchange Online ).

 

I can access other Office 365 services which suggests the password is correct.

 

I am given the following error:

 

Connecting to remote server failed with the following error message: Access is
denied. For more information, see the about_Remote_Troubleshooting Help topic.

 

Can anyone advise how to remediate this issue?

 

Kind Regards,

Jordan

7 Replies

Resources