was working with one of my customer where Exchange management shell was missing after applying Microsoft Exchange service pack.
Went ahead and given work around as mentioned in below articles. However, customer was not really accepting the workaround.
Let’s make it permanent solution rather than workaround:
As most of us aware that we can’t uninstall/reinstall Exchange management tool without making server level changes in setup. It could be either add a new role or remove an existing role along with Management tools. Advising reinstallation of the server not be an appropriate as that may not be acceptable by customer and that’s time consuming as well. Let’s follow below action plan:
Estimated time: 20 mnts.
After installing Service Pack for Exchange Server 2010, the Exchange Management Shell is missing.
Missing certain .ps1 scripts from the bin directory, removed during SP setup.Resolution.
This problem can occur if there is a missing value in the registry when Setup is run for AdminToolsRole. The missing registry value is as follows:
Path: HKEY_LOCAL_MACHINE\Software\Microsoft\ExchangeServer\v14\Admin Tools
To resolve this issue, follow these steps:
Verify that the following files are present in the %ExchangeInstallPath%\bin directory:
If any of these files are missing, copy the files from the Exchange Server 2010 Service Pack 1 installation media to the %ExchangeInstallPath%\bin directory.
Note: These files are present in the \Setup\Serverroles\Common folder.
Click Start, click Run, type regedit, and then click OK.
Locate and then right-click the following registry subkey:
Click New, click String Value, and then type ConfiguredVersion.
Double-click ConfiguredVersion, and then type the SP version. (For an example: SP version will be: 220.127.116.11).
Note: This value should match the UnpackedVersion value. This value is found in the same key.
Go to a healthy server and export registry:
Export all 3 or you can target PowerShellSnapIns.
Import in the effected server.
Run Get-Pssnapin –registered to verify the registry.
Create a shortcut for Exchange management shell on another server and copy it to the effected server.
Browse below path:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Exchange Server 2010
Paste the shotcut.
Now you will be able to see Exchange management shell in startup.
If you create a shortcut and keep in desktop, you may have to change the target to run the shell.
Right-click the new shortcut that you created on the desktop, and then click Properties.
In the Target path on the Shortcut tab, replace the text with the following text:
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto"
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". '%ExchangeInstallPath%\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto"
Note If the Windows root drive or the Exchange installation folder or drive name differs from the default that is specified in the example, you have to change the path accordingly
Warning If you manually created shortcuts for the Exchange Management Shell before you installed or updated the server, you may have to repeat these steps to correctly target the Exchange Management Shell path.