1. 
Set-ExecutionPolicy RemoteSigned
import-module ActiveDirectory




2. 
$UserCredential = Get-Credential

 

3. 

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://bhm1ex01.controlsdata.com/PowerShell/ -Authentication Kerberos -Credential $UserCredential



$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://AEC01A-EX02.aecuk.aec.local/PowerShell/ -Authentication Kerberos -Credential $UserCredential



4. 

Import-PSSession $Session


5.

Remove-PSSession $Session

---------------------------

================Enable remote Shell for a user


Set-User alb100 -RemotePowerShellEnabled $True
