title: Unknown user name or bad password when using Kerberos authentication
body: <p>I have installed Exchange Server 2013 on a Windows Server 2012 machine.</p>
  
  <p>When I try to establish a remote PowerShell connection, using this command with Kerberos authentication:</p>
  
  <pre><code>$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://servername/powershell" -Credential $credential -Authentication "Kerberos"
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>New-PSSession : [servername] Connecting to remote server servername failed with the following error message : Logon failure: unknown user name or bad password. For more information, see the about_Remote_Troubleshooting Help topic.
  At line:1 char:20
  + $exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -Connecti ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
      + FullyQualifiedErrorId : LogonFailure,PSSessionOpenFailed
  </code></pre>
  
  <p>However, if I try it with basic authentication, a connection is established successfully.</p>
  
  <pre><code>$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://servername/powershell" -Credential $credential -Authentication "Basic"
  </code></pre>
  
  <p>Can somebody please tell me why this error is happening, and also a remedy to this.</p>