Exchange management shell on Windows 10

Trying to run Exchange Management Shell on Windows 10 versions later than 1709 can be a frustrating experience – one of the issues which i have encountered recently is in relation to this.

The Problem

When trying to run Exchange Management Shell on Windows 10 1909 i come across the following error.

The type initializer for ‘Microsoft.Exchange.Diagnostics.ExTraceConfiguration’ thew an exception

Some of the other errors i faced can be seen below.

GetComputerSite : Exception calling “GetComputerSite” with “0” argument(s): “Configuration system failed to initialize”

FindAll : The following exception was thrown when trying to enumerate the collection: “Configuration system failed to initialize”

ToString : You cannot call a method on a null-valued expression

The fix

After looking around the web and struggling to find the solution myself – the person who managed to work this one out is ngagne – Austrian Bossfan – so shout out to him on this one!

Fortunately, the solution to this one is easy and straightforward, the steps are listed below.

  1. Navigate to C:\Windows\System32\WindowsPowerShell\v1.0\
  2. Locate the file named “powershell.exe.config”
  3. Rename the file to “OLD_powershell.exe.config”

Doing so should allow you to run exchange management console without having errors.

Hope that this post proves useful.

Please let me know if you have any questions and ill do my best to answer them for you.

Thanks for reading.

Leave a Reply

Your email address will not be published.