. $("$libFolder\Exchange\CommonMsgConstants.ps1")

$PasswordObj = ConvertTo-SecureString –String $password –AsPlainText -Force -ErrorAction Stop;
$UserCredential = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $login,$PasswordObj -ErrorAction Stop;

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "http://$server/PowerShell/" -Authentication Kerberos -Credential $UserCredential -ErrorAction Stop;
Import-PSSession -Session $session -ErrorAction Stop;

$TIMEOUT = 5