Memorise

Exchange Management Shell and Powershell not working

After upgrading Exchange 2010 SP3 on Windows 2008 Enterprise Server with SP2. when I open the exchange management shell or try to access the Queue Viewer via the Exchange Managment Console I get the following error and I can’t run any commands in the Exchange Management Shell or in the PowerShell.

The term ‘C:\Program Files\Microsoft\Exchange Server\V14\\bin\RemoteExchange.ps
1’ is not recognized as the name of a cmdlet, function, script file, or operabl
e program. Check the spelling of the name, or if a path was included, verify th
at the path is correct and try again.
At line:1 char:2
+ . <<<<  ‘C:\Program Files\Microsoft\Exchange Server\V14\\bin\RemoteExchange.p
s1’; Connect-ExchangeServer -auto
+ CategoryInfo          : ObjectNotFound: (C:\Program File…oteExchange.p
s1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

The term ‘Connect-ExchangeServer’ is not recognized as the name of a cmdlet, fu
nction, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:99
+ . ‘C:\Program Files\Microsoft\Exchange Server\V14\\bin\RemoteExchange.ps1’; C
onnect-ExchangeServer <<<<  -auto
+ CategoryInfo          : ObjectNotFound: (Connect-ExchangeServer:String)
[], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

SOLUTION: 

This is what I have done to fix my issue.
Checked to see if I have all these scripts in your bin (C:\Program Files\Microsoft\Exchange Server\V14\\bin\) folder and they ware missing,  I copied them there from the install media (Extracted Exchange SP3) under \setup\serverroles\common:

CommonConnectFunctions.ps1
CommonConnectFunctions.strings.psd1
Connect-ExchangeServer-help.xml
ConnectFunctions.ps1
ConnectFunctions.strings.psd1
RemoteExchange.ps1
RemoteExchange.strings.psd1


Categorised as: Exchange, Microsoft


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.