Share via

Getting error when trying to use connect-ippssession

Dave G 5 Reputation points
2025-12-17T14:48:51.5533333+00:00

I'm trying to resolve an issue with a mailbox that is full and can't delete items. When trying to use "connect-ippssession" I get this error:

WARNING: Your connection has been redirected to the following URI: "https://ps.compliance.protection.outlook.com/ucc/Powershell-LiveId "

Connecting to remote server ps.compliance.protection.outlook.com failed with the following error message : The WinRM client sent a request to an HTTP server and got a response saying the requested HTTP URL was not available. This is

usually returned by a HTTP server that does not support the WS-Management protocol. For more information, see the about_Remote_Troubleshooting Help topic.

At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.1.0\netFramework\ExchangeOnlineManagement.psm1:733 char:21

  •                 throw $_.Exception;
    
  •                 ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException

I've confirmed that the ExchangeOnlineManagement module is installed and is version 3.9.0.
I've tried googling it and am having limited results.

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.


2 answers

Sort by: Most helpful
  1. Vasil Michev 126K Reputation points MVP Volunteer Moderator
    2025-12-17T14:58:19.5666667+00:00

    The error message suggests you're using the 3.1.0 version. If you have recently updated the module, make sure to reopen the PowerShell console. You can also check via Get-Module.

    Similarly, the WinRM-related bits also hint that an older version is in use. Let's make sure the connection is being made with the latest version, before going down some rabbit hole.

    1 person found this answer helpful.

  2. Q&A Assist
    2025-12-17T14:49:04.1633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error you are encountering when trying to use Connect-IPPSSession indicates that the WinRM client is unable to connect to the specified URI because it is not available for WS-Management protocol. This can happen due to several reasons:

    1. Firewall Issues: Ensure that your firewall is not blocking the necessary traffic required for the connection.
    2. Windows Remote Management Service: Check if the Windows Remote Management (WinRM) service is running. You can do this by:
      • Typing services.msc in the Run dialog box and pressing Enter.
      • Looking for the Windows Remote Management service, ensuring it is set to Manual and started.
    3. Proxy Server Configuration: If you are using a proxy server, verify that it is configured correctly. You can check the current proxy settings by running netsh winhttp show proxy in an elevated Command Prompt. If needed, reset or configure the proxy settings using the appropriate netsh commands.

    If the issue persists after checking these points, consider updating the ExchangeOnlineManagement module to the latest version, as newer versions may contain fixes for known issues.


    References:

Your answer

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