$session=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://1ask2.com/powershell/?serializationlevel=full -credential adatum\administrator
[1ask2.com] Connecting to remote server failed with the following error message : The server certificate on the destination computer (1ask2.com:443) has the following errors:
The SSL certificate could not be checked for revocation. The server used to check for revocation might be unreachable.
The SSL certificate is signed by an unknown certificate authority. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionOpenFailed
Solution:
The CA for 1ask2.com must be trusted.
The CRL of CA certificate must include http path.

Then, make sure that http://1ask2.com/certEnroll can be accessed anonymously with http protocol.

$Session=New-PSsession -ConfigurationName Microsoft.Exchange -ConnectionURI http://abbcanada.com/powershell/?SerializationLevel=Full -credential carteasy\administrator
[abbcanada.com] Connecting to remote server failed with the following error message : WinRM cannot process the request.
The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or us
e HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information,
see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
eption
+ FullyQualifiedErrorId : PSSessionOpenFailed
Solution:
At computer:exserver.carteasy.com
winrm s winrm/config/client '@{TrustedHosts="*"}'
From computer:win2.adatum.com
$Session=New-PSsession -ConfigurationName Microsoft.Exchange -ConnectionURI https://abbcanada.com/powershell/?SerializationLevel=Full -credential carteasy\administrator
Delete a listener
winrm e winrm/config/listener
Listener
Address = *
Transport = HTTP
Port = 5985
Hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = 127.0.0.1, 191.121.13.45, ::1
Listener
Address = *
Transport = HTTPS
Port = 5986
Hostname = win2.adatum.com
Enabled = true
URLPrefix = wsman
CertificateThumbprint = 2f 13 23 e6 5b bb ce cb b6 9f d3 3f d6 39 19 e8bb 0c 9f 5b
ListeningOn = 127.0.0.1, 191.121.13.45, ::1
winrm delete winrm/config/listener?Address=*+Transport=https
winrm e winrm/config/listener
Listener
Address = *
Transport = HTTP
Port = 5985
Hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = 127.0.0.1, 191.121.13.45, ::1
Enable a listener
winrm quickconfig -transport:https