title: Powershell Remoting: Transport Exception
body: <p>Here's the code I'm using:</p>
  
  <pre><code>const string username = "domain\\user";
  const string password = "password";
  var credentials = new PSCredential(username, password.ToSecureString());
  var connInfo = new WSManConnectionInfo(new Uri("https://server.domain.com/powershell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credentials)
                             {AuthenticationMechanism = AuthenticationMechanism.Negotiate};
  
  var rS = RunspaceFactory.CreateRunspace(connInfo);
  
  rS.Open();
  </code></pre>
  
  <p>Here's the Exception:</p>
  
  <blockquote>
    <p>Connecting to remote server server.domain.com failed with the following error message: The WinRM client cannot process the request. The authentication mechanism requested by the client is not supported by the server or unencrypted traffic is disabled in the service configuration. Verify the unencrypted traffic setting in the service configuration or specify one of the authentication mechanisms supported by the server.  To use Kerberos, specify the computer name as the remote destination. Also verify that the client computer and the destination computer are joined to a domain. To use Basic, specify the computer name as the remote destination, specify Basic authentication and provide user name and password. Possible authentication mechanisms reported by server: For more information, see the about_Remote_Troubleshooting Help topic.</p>
  </blockquote>
  
  <p>So here's my confusion.</p>
  
  <ul>
  <li>I checked the WSMan:\localhost\Client on the client computer, and made sure AllowUnencrypted was $true.</li>
  <li>I checked WSMan:\localhost\Service on the server and made sure AllowUnencrypted was $true. </li>
  <li>WSMan:\localhost\Service\Auth has Negotiate as well as Kerberos set to $true as well.</li>
  </ul>
  
  <p>What else can I check to get rid of the exception?</p>