title: WinRM cannot process the request - fails only over a specific domain
body: <p>Some of ours servers (W2K8 R2) were moved to the cloud last week, once done that my powerswhell script started to fail (was working fine before), the exception is thrown on the line where the connection is trying to be established, </p>
  
  <pre><code>$ExSession = New-PSSession –ConfigurationName Microsoft.Exchange –ConnectionUri     "http://$g_strExchangeServer/PowerShell" `
  -Credential $Credentials –Authentication Kerberos
  </code></pre>
  
  <p>With the following message, </p>
  
  <pre><code>[subd.staging.com] Connecting to remote server failed with the following error message : 
  **WinRM cannot process the request**. The following error occured while using Kerberos authentication: There are currently no logon servers available to service the logon request.  
  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 use 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 onfig. For more information, see the about_Remote_Troubleshooting Help topic.
  + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
  + FullyQualifiedErrorId : PSSessionOpenFailed
  </code></pre>
  
  <p>this happens only if I try to target our testing domain, if I point the script to our production domain then it works. </p>
  
  <p>The same error is displayed on all the servers that were already moved to cloud.</p>
  
  <p>Notice that all the servers which have not already moved to cloud are able to run the script on both domains without any problem.</p>
  
  <p>I've tried the following, but no luck.</p>
  
  <pre><code>//Add the destination computer to the WinRM TrustedHosts configuration setting. 
  c:\&gt;WinRM set winrm/config/client @{TrustedHosts="stagingserver"} 
  
  
  //Confirm that WinRM is properly configured.  
  c:\&gt;Winrm quickconfig  
  
  //Make sure that the remote server allows commands from any machine. 
  PS c:\&gt;Set-item wsman:localhost\client\trustedhosts -value * 
  </code></pre>
  
  <p>Using Powershell v2 and WinRM v2</p>
  
  <p>Any comments are welcome. </p>