The Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.E2010 is not installed on this machine

/

Saw a weird issue on an Exchange 2010 Server last week.

Whenever someone tried to start the Exchange Management Shell, it came with the following error:

The Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.E2010 is not installed on this machine

For some reason the Exchange Management Console works fine.

But whenever the Exchange Management Shell is trying to be loaded or other 3. party products, such as TSM in our case, want to use the Exchange Management Shell, they get the error:

The Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.E2010 is not installed on this machine

I tried to load the Exchange 2010 Management Shell snap-in manually from PowerShell, but still got same error:

image

After some research I found that in the Registry under HKEY_LOCAL_MACHINESOFTWAREMicrosoftPowerShell1PowerShellSnapIns – The Microsoft.Exchange.Management.PowerShell.E2010 was missing:

image

I then double checked with another Exchange 2010 server and could confirm that the following keys was missing under PowerShellSnapIns:

  • Microsoft.Exchange.Management.PowerShell.E2010
  • Microsoft.Exchange.Management.Powershell.Support

I imported the following Registry Keys (exported from another Exchange 2010 server, without these issues):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftPowerShell1PowerShellSnapInsMicrosoft.Exchange.Management.PowerShell.E2010]
"CustomPSSnapInType"="Microsoft.Exchange.Management.PowerShell.AdminPSSnapIn"
"ApplicationBase"="C:\Program Files\Microsoft\Exchange Server\V14\bin"
"AssemblyName"="Microsoft.Exchange.PowerShell.Configuration, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
"Description"="Admin Tasks for the Exchange Server"
"ModuleName"="C:\Program Files\Microsoft\Exchange Server\V14\bin\Microsoft.Exchange.PowerShell.Configuration.dll"
"PowerShellVersion"="1.0"
"Vendor"="Microsoft Corporation"
"Version"="14.0.0.0"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftPowerShell1PowerShellSnapInsMicrosoft.Exchange.Management.Powershell.Support]
"CustomPSSnapInType"="Microsoft.Exchange.Management.Powershell.Support.SupportPSSnapIn"
"ApplicationBase"="C:\Program Files\Microsoft\Exchange Server\V14\bin"
"AssemblyName"="Microsoft.Exchange.Management.Powershell.Support, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
"Description"="Support Tasks for the Exchange Server"
"ModuleName"="C:\Program Files\Microsoft\Exchange Server\V14\bin\Microsoft.Exchange.Management.Powershell.Support.dll"
"PowerShellVersion"="1.0"
"Vendor"="Microsoft Corporation"
"Version"="14.0.0.0"

That solved the problem!

Now Exchange Management Shell snap-in could be loaded.

Also thanks to blog post from Joe Trombley for guiding me in the right way.