connecting to exchange 2013 permanently

Occasional Contributor

Everytime i start Powershell on my admin pc and want to run cmdlets to exchange server the Exchange connection must be made.

For that i load the following every time:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://exchangeserver/PowerShell/ -Authentication Kerberos

Import-PSSession $Session


Is it possible to connect to it automatically when i start powershell on a non-exchange server?

2 Replies
best response confirmed by corne2010 (Occasional Contributor)

@Vasil Michev ,


Thanks, that did the trick!