MS Exchange 2010 management tools - EMC (Exchange Management Console)  and EMS (Exchange Management Shell) no longer working

Mirza Begic
Mirza Begic used Ask the Experts™
on
Hi guys,

This issue has baffled me for ages, all of the sudden my MS Exchange 2010 management tools - EMC (Exchange Management Console)  and EMS (Exchange Management Shell) - have stopped working, both fail when I try to access them - below is the error. Also worth noting no changes had been made to the server prior to the issue occurring.
I have also noticed when I go to Control Panel - Programs & Features - and click on Change I also get an error, I am not sure if and how maybe the whole installation has corrupted.
My emails are still working.

We are running via the following setup:
- Exchange 2010 SP3 UR18 is running on Windows Server 2008 R2 SP1
- We are also running in hybrid mode - majority of our mailboxes have been migrated to Office 365 however there are around 10 mailboxes left.

Thank you all in advance!
Mike




ERROR:

TryLoadExchangeTypes : Exception calling "TryLoadExchangeTypes" with "2" argument(s): "Could not load file or assembly
'file:///C:\Program Files\Microsoft\Exchange Server\V14\Bin\Microsoft.Exchange.Data.Providers.dll' or one of its depend
encies. The module was expected to contain an assembly manifest."
At C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1:75 char:92
+ $typeLoadResult = [Microsoft.Exchange.Configuration.Tasks.TaskHelper]::TryLoadExchangeTypes <<<< ($ManagementPath, $t
ypeListToCheck)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

The Exchange types file wasn't loaded because not all of the required files could be found.


VERBOSE: Connecting to OUR SERVER.OUR DOMAIN.local
[OUR SERVER.OUR DOMAIN.local] Processing data from remote server failed with the following error message: The type
initializer for 'Microsoft.Exchange.Configuration.Authorization.InitialSessionStateBuilder' threw an exception. For mor
e information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
   eption
    + FullyQualifiedErrorId : PSSessionOpenFailed
VERBOSE: Connecting to OUR SERVER.local
[OUR SERVER.OUR DOMAIN.local] Processing data from remote server failed with the following error message: The type
initializer for 'Microsoft.Exchange.Configuration.Authorization.InitialSessionStateBuilder' threw an exception. For mor
e information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
   eption
    + FullyQualifiedErrorId : PSSessionOpenFailed
VERBOSE: Connecting to OUR SERVER.local
[OUR SERVER.OUR DOMAIN.local] Processing data from remote server failed with the following error message: The type
initializer for 'Microsoft.Exchange.Configuration.Authorization.InitialSessionStateBuilder' threw an exception. For mor
e information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
   eption
    + FullyQualifiedErrorId : PSSessionOpenFailed
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect.: OUR SERVER.OUR DOMAIN.local
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Commented:

Author

Commented:
@ MAS

Thanks for your prompt reply however I did try the EMTshooter before with no success, it did not report on what the exact problem is nor did it recommend any solutions.

I have executed EMTshooter 1 more time to see if it will provide more information on the error or solution but unfortunately the outcome was the same as before, see below:


EMTshooter RESULT:
'Welcome to the Exchange Management Troubleshooter!

We recommend that you run the troubleshooter after making changes to
IIS to ensure that connectivity to Exchange Powershell is unaffected.

Checking IIS Service...

Checking the Exchange Install Path variable...

Checking the Powershell Virtual Directory...

Checking the Powershell vdir SSL setting...

Checking the Powershell vdir path setting...

Checking HTTP Port 80...

Checking HTTP Port 80 Host Name...

Testing for errors...

VERBOSE: Connecting to OUR_SERVER.OUR_DOMAIN.local


new-pssession : [OUR_SERVER.OUR_DOMAIN.local] Processing data from remote server OUR_SERVER.OUR_DOMAIN.local fai
At C:\Users\MY_USERNAME\Documents\EMTshooter\EMTConnectFunctions.ps1:177 char:15
+ ...  $session = new-pssession -connectionURI "http://$fqdn/powershell?ser ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingT
    + FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed
The Exchange Management Troubleshooter successfully completed connecting to:

OUR_SERVER.OUR_DOMAIN.local

Failed to connect to any Exchange Server in the current site.

Problem found:

Looking for error...

Unknown Error

After each error is resolved, close this window and re-run the tool to check for additional problems.'

Author

Commented:
If I click on CHANGE while Microsoft Exchange Server 2010 is highlighted in Programs and Features I get the error attached
Capture.PNG
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
When I try to uninstall Exchange 2010 management tools via Command Prompt I get the error attached
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Commented:
You can use this command in Powershell to get access to Exchange Shell
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;

Open in new window

Author

Commented:
Thx, tried already with no luck:
PS C:\Windows\system32> Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;
Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.SnapIn' is not installed on this computer.
At line:1 char:1
+ Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...werShell.SnapIn:String) [Add-PSSnapin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand


I've also tried Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.E2010 - also got an error:
PS C:\Windows\system32> Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
Add-PSSnapin : The type initializer for 'Microsoft.Exchange.Management.PowerShell.CmdletConfigurationEntries' threw an exception.
At line:1 char:1
+ Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-PSSnapin], TypeInitializationException
    + FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.PowerShell.Commands.AddPSSnapinCommand
systechSenior Technical Lead

Commented:
Hi,

By looking this error, i could think of some powershel path in IIS virtual directory may be wrong . Could you this path?

Open IIS and locate the powershll virtual directory, make sure the path is correct . I.e - C:\Program Files\Microsoft\Exchange Server\Vxx\ClientAccess\PowerShell.

Also, what's the output you are getting for 'Get-ExchangeServer' ?
Sudeep SharmaTechnical Designer

Commented:
Have you tried restarting the World Wide Web Publishing Service and check if that has any effect on the issue?

Thanks,
Sudeep

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial