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

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,349 questions
Microsoft Intune Compliance
Microsoft Intune Compliance
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Compliance: Adhering to rules, standards, policies, and laws.
145 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,274 questions
Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
175 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shaofan Lv-MSFT 6,915 Reputation points Microsoft Vendor
    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