Unable to open Exchange Management Shell on Exchange 2016

Grace Yin 111 Reputation points
2022-11-30T22:33:44.243+00:00

Hi,

I have Exchange 2016. I failed to open Exchange Management Shell. The issue happened after I patched CU23. The error message is below.

New-PSSession : [Exchange.mycompany.com] Connecting to remote server Exchange.mycompany.com failed with

the following error message : The WinRM client cannot process the request. It cannot determine the content type of the

HTTP response from the destination computer. The content type is absent or invalid. For more information, see the

about_Remote_Troubleshooting Help topic.

At line:1 char:1

  • New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin

gTransportException

  • FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed

Please help!

Thanks,

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,626 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Joy Zhang-MSFT 1,051 Reputation points
    2022-12-01T02:10:53.86+00:00

    Hi @Grace Yin ,

    According to error messages, here are some troubleshooting steps for your reference and hope these help you:

    • Since freshly installed Exchange servers may not be configured to accept incoming PowerShell connections. To fix this and let your server configure all the necessary services, execute the following command in PowerShell: Enable-PSRemoting

    Above solution is mentioned in the blog you could refer to it: How to fix problems related to remote PowerShell connections

    • Checking if SSL certificate was no longer bound to the Exchange Back End website on that Exchange 2016 server. To fix this, in IIS Manager right-click the Exchange Back End website and click Bindings, Highlight https and click Edit, choose the certificate you want to bind to the site. Then run iisreset in cmd, retry EMS.

    Detailed information: The WinRM Shell Client Cannot Process the Request

    • Make sure the DNS is working perfectly. Then open iis in exchange 2016, select default Website -->Power Shell. Change the physical path from: C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\PowerShell to: C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\PowerShell. At last, restart IIS.

    A similar thread for your reference as well: Exch 2016 Management Shell Broken - TheWinRM client cannot process the request

    Please Note: Since the web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.


    If an Answer is helpful, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Grace Yin 111 Reputation points
    2022-12-02T20:34:00.253+00:00

    Thank you for your reply. I have verified all above and confirmed all are configured correctly.

    By the way, I have another Exchange server which is configured as failover with this Exchange server. I am able to launch EMS on that one with the same login account.

    It seems CU23 broke something on this server, but I failed to run CU23 setup.exe to repair it.

    Any idea?

    Please help!

    1 person found this answer helpful.

  3. Grace Yin 111 Reputation points
    2022-12-01T19:53:21.277+00:00

    Hi @Joy Zhang-MSFT ,

    Thank you very much for your reply. I followed your instructions. I ran Enable-PSRemoting on the Exchange server. I verified the SSL cert which is installed and valid. I changed the physical path and restarted IIS.

    Now I got the error below when I launched EMS.

    New-PSSession : [Exchange.mycompany.com] Processing data from remote server Exchange.mycompany.com failed
    with the following error message: The EndpointConfiguration with the
    http://schemas.microsoft.com/powershell/Microsoft.Exchange identifier is not in a valid initial session state on the
    remote computer. Contact your Windows PowerShell administrator, or the owner or creator of the endpoint configuration.
    For more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1

    • New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
      gTransportException
    • FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed

    Please advise!

    Thank you!


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.