Forum Discussion

corne2010's avatar
corne2010
Copper Contributor
Jan 04, 2021

connecting to exchange 2013 permanently

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?

Resources