https://www.sikich.com

Microsoft Exchange Management Shell Connect Problem Fixed

INSIGHT 3 min read

Microsoft Exchange 2013 is reaching end of support on April 11, 2023. That means Microsoft will no longer provide the following after that date:

  1. Technical support for problems
  2. Bug fixes for either stability or usability
  3. Security fixes for vulnerabilities
  4. Time zone updates

As you can imagine, not having #1-3 will get companies moving off of their Exchange 2013 environments and, as such, Sikich has an uptick in Exchange 2013 related work.

During one such engagement, connecting to Exchange Management Shell gave me grief. Here’s a screen capture:

Microsoft Shell Exchange connect problem

How to Fix the Exchange Management Shell Connect Problem

It appears I’m on a buggy version of Exchange. The first troubleshooting step should be to see what IIS has as the physical path of the PowerShell virtual directory.

To check, open IIS Manager and navigate to:

  • Default Website
  • PowerShell virtual directory
  • Manage Application
  • Advanced Settings…
open IIS Manager

In my clients case, it was incorrectly set as: %ExchangeInstallPath%FrontEndHttpProxyPowerShell

%ExchangeInstallPath%FrontEndHttpProxyPowerShell

It should be %ExchangeInstallPath%ClientAccessPowerShell which would most likely be C:Program FilesMicrosoftExchange ServerV15ClientAccessPowerShell.

For a quick check to see if those are one and the same on your server is to open a File Explorer window and put this into the URL bar of it, hit <enter> and see the actual path.

%ExchangeInstallPath%ClientAccessPowerShell
%ExchangeInstallPath%ClientAccessPowerShell

Remember, if the URL bar abbreviates your path, you can always click in the white space to the right of it to get the full path.

get the full path

On this server, Exchange was installed in the default path on the C: drive.

exchange installed on the default path

Now you should know the actual path and can use that value or the system variable value. Either works.

Back in IIS, a quick update to the Physical Path and hitting OK should take care of the errors in Exchange Management Shell. No services restart or reboot needed.

fix Microsoft Exchange Shell Connect problem

Simply close out any Exchange Management Shell windows that may already be open with the errors, open it back up again, and you should be back in business.

exchange management shell problem fixed

This issue is known to be on both Exchange 2013 and on Exchange 2016. In my case this Exchange Server version this server was on Exchange Server 2016 CU20.

Exchange server version

You can see how the build numbers correlate to cumulative updates and release dates here to see what your server is on: https://learn.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates

Have any questions about how to fix problems with Microsoft Exchange Shell Management connect? Please reach out to our team of experts at any time!

Author

Craig Schellenberg is a Senior Network Consultant at Sikich that works with businesses to improve their IT. Being detail oriented assists in his ability to design and deploy new solutions as well as troubleshoot complex issues. His primary areas of focus are virtualization and storage on premise (whether through VMware vSphere or Microsoft Hyper-V), Microsoft Cloud services such as Azure and Office 365, Microsoft SQL design and administration, backup/DR/Business Continuance, and network route/switch/firewalls.

Craig holds many certifications including his MCSE (Microsoft Certified Solutions Expert) in Productivity, Messaging, and Cloud Platform and Infrastructure. Craig also holds multiple certifications of his VCP (VMware Certified Professional) including version 3, 4 (Data Center Virtualization), 5 (Data Center Virtualization), 5 (Desktop), Cloud, and 6 (Data Center Virtualization).