Cannot connect to compliance Powershell.

ESJ 41 Reputation points
2023-12-22T06:36:19.96+00:00

Cannot connect to compliance Powershell.

I am getting below error when running Connect-IPPSSession .

WARNING: Your connection has been redirected to the following URI: "https://eur01b.ps.compliance.protection.outlook.com/Powershell-LiveId?BasicAuthToOAuthConversion=true;PSVersion=5.1.19041.3803" Connecting to remote server eu.ps.compliance.protection.outlook.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic. At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.0.0\netFramework\ExchangeOnlineManagement.psm1:730 char:21 + throw $_.Exception; + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException.

I have this powershell version:

Name Id Version Source ----------------------------------------------------------------- PowerShell Microsoft.PowerShell 7.4.0.0 winget PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.101 winget

ExchangeOnlineManagement module and PowerShellGet is installed and imported. Please help.

Thanks

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,178 questions
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Compliance
Microsoft Security | Microsoft Defender | Microsoft Defender for Identity
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-12-22T08:03:52.5866667+00:00

    Hello @ESJ

    Welcome to Microsoft Q&A!

    <<I am getting below error when running Connect-IPPSSession .

    Have you consulted the troubleshooting doc mentioned in the error? you could refer to it for troubleshooting.

    For more information, see the about_Remote_Troubleshooting Help topic.

    <<ExchangeOnlineManagement module and PowerShellGet is installed and imported. Please help.

    1.This link contains all the steps for "Connect to Exchange Online PowerShell".

    Of course, it also includes: Install-Module -Name ExchangeOnlineManagement

    Hope that helps!

    2.Search as much as I can: How to Install PowerShellGet

    Regards

    SF

    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.