Created
January 26, 2022 17:12
-
-
Save seyerj/3f3ff0eca17de19515bdf6901eda5716 to your computer and use it in GitHub Desktop.
Opens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remote EAC Shell | |
# from: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps | |
# Get Credentials | |
$UserCredential = Get-Credential | |
# Set Session | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential | |
# Connect Session | |
Import-PSSession $Session -DisableNameChecking | |
# Remove Session - Important, don't leave these hanging! | |
Remove-PSSession $Session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment