Unable to open Exchange Management Shell on Exchange 2016

Grace Yin 116 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 | Exchange Server | Management
{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. kamal uddin 0 Reputation points
    2025-04-10T09:41:00.78+00:00

    New-PSSession : [mail2.Domain.com Connecting to remote server mail2.Domain.com failed with the following error message :  For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:1 + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Micr ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin    gTransportException     + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed


  3. Techhelp Volunteer 230 Reputation points
    2025-04-10T13:05:43.3766667+00:00

    It appears your Exchange Management Shell (EMS) is failing after applying Cumulative Update 23 to Exchange Server 2016. Let's systematically address this issue.

    Initial Observations

    • The error suggests WinRM communication problems
    • Your failover Exchange server works fine with the same credentials
    • Repair attempts with CU23 setup.exe have failed

    1. Basic WinRM Checks

    
    Test-WSMan -ComputerName localhost
    
    

    If this fails, WinRM might be corrupted.

    2. Re-register WinRM

    
    winrm quickconfig
    
    winrm invoke Restore winrm/Config
    
    

    3. Check Exchange Backend Services

    Ensure these services are running:

    • Microsoft Exchange Service Host
    • Microsoft Exchange Remote Procedure Call (RPC)
    • World Wide Web Publishing Service
    • Windows Remote Management (WS-Management)

    4. Rebuild Exchange PowerShell Virtual Directory

    
    Remove-PowerShellVirtualDirectory -Identity "Exchange.mycompany.com\PowerShell (Default Web Site)"
    
    New-PowerShellVirtualDirectory -InternalURL "https://Exchange.mycompany.com/PowerShell" -ExternalURL "https://Exchange.mycompany.com/PowerShell"
    
    Restart-WebAppPool MSExchangePowerShellAppPool
    
    iisreset
    
    

    5. Repair Installation

    Since CU23 setup fails, try:

    1. Uninstall CU23 via Control Panel > Programs and Features
    2. Reinstall CU23 with administrative privileges
    3. Use /m:RecoverServer switch if needed

    6. Check Event Logs

    Examine these logs for detailed errors:

    • Application and Services Logs > Microsoft > Exchange > Management
    • Windows Logs > Application
    • Windows Logs > System

    7. Alternative Access Methods

    Try connecting to EMS using:

    
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://Exchange.mycompany.com/PowerShell/ -Authentication Kerberos
    
    Import-PSSession $Session
    
    

    8. Last Resort Options

    If all else fails:

    1. Consider restoring from backup
    2. Prepare for a server rebuild using /m:RecoverServer

    if my response helps, you may share your vote so others can get information on your case url.

    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.