Connect-ExchangeServer PowerShell Function

When working with Exchange 2010 it is possible to remotely connect with PowerShell to an Exchange 2010 server without having the Exchange Management tools installed on your local workstation. This is a feature known as implicit remoting. The technique to connect is very straightforward, but to make it not necessary to have to remember the commands I wrapped them up into a function Connect-ExchangeServer which I then stored in my PowerShell profile.

function Connect-ExchangeServer { param( $ExchangeServer ) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://$ExchangeServer/PowerShell/ -Authentication Kerberos Import-PSSession $Session

} ```

[![](/images/ExchangeRemoting.png "ExchangeRemoting")](

Happy Remoting!