Administer Microsoft Exchange Remotely with Powershell

Rather than installing the remote exchange management tools and the pain that can cause, you can use powershell remoting. To setup powershell to connect to the exchange server pop the following into a powershell prompt on your client machine:

$cred = get-credential
$myremote = New-PSSession -configurationname Microsoft.Exchange -connectionURI http://mail_server_name/Powershell -credential $cred
Import-PSSession $myremote

The first line prompts you for the account details to connect/manage exchange. Once you’ve entered the next two lines you should be able to run remote powershell commands. Once you have finished, just enter the following:

Remove-PSSession $myremote
Written on March 11, 2013