Connect to Exchange server using remote PowerShell

Print Friendly
$UserCredential = Get-Credential

Enter the credentials

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential
Import-PSSession $Session -DisableNameChecking

In order to close the session:

Remove-PSSession $Session
This entry was posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published.