Below you'll find two alternative methods of running Exchange PowerShell instead of using the Start menu shortcut. Please note that these solutions work only when you're logged on directly on the Exchange Server.
1. Execute a special script from the EMS shortcut directly in the PS console.
A full name of this script parameter is as follows:
. 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'
Therefore, it is a matter of running it in the standard PowerShell window. Make sure that you launched the PS console with the administrative privileges. Additionally if you want to run it on Exchange 2013 make sure to replace the "V14" part of the script path to "V15".
You are now ready to run typical Exchange cmdlets.
2. Add the Exchange snapin in the PS console.
This method is fairly easy as it requires running only one command in the normal PowerShell console:
After the snapin loads, you are ready to run cmdlets. Unfortunately, this method does not support all available Exchange commands.
There is also another way of running Exchange Management Shell in the standard Windows Powershell console via Powershell Remoting. With this method, you can run scripts on your server even from the remote workstation without the need to launch it directly on the Exchange machine.
We'll cover PowerShell Remoting to the Exchange server in the next blogpost - stay tuned!