SOLVED

connecting to exchange 2013 permanently

Copper 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 (Copper Contributor)

@VasilMichev ,

 

Thanks, that did the trick!

 

1 best response

Accepted Solutions
best response confirmed by corne2010 (Copper Contributor)