Jan 04 2021 02:15 AM
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?
Jan 04 2021 08:15 AM
SolutionPut those cmdlets in your Profile: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?vi...
Jan 05 2021 04:07 AM
Jan 04 2021 08:15 AM
SolutionPut those cmdlets in your Profile: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?vi...