Forum Discussion
corne2010
Jan 04, 2021Copper Contributor
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?
- corne2010Copper Contributor