Skip to content

Instantly share code, notes, and snippets.

@seyerj
Created January 26, 2022 17:12
Show Gist options
  • Save seyerj/3f3ff0eca17de19515bdf6901eda5716 to your computer and use it in GitHub Desktop.
Save seyerj/3f3ff0eca17de19515bdf6901eda5716 to your computer and use it in GitHub Desktop.
Opens
# 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