title: powershell remoting Win2008R2 "The WSMan service could not launch a host process to process the given request"
body: <p>I've recently upgraded a number of servers from 2003 to 2008R2. Since the upgrade I've started to see the following error:</p>
  
  <blockquote>
    <p>[servername] Connecting to remote server failed with the following error message : The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. For more information, see the about_Remote_Troubleshooting Help topic.</p>
  </blockquote>
  
  <p>The error is seemingly random. The script will work and then fail.  The command to create the session is in a loop  (create session, remove session) and is called numerous times as part of a set of deployment scripts.  When the script fails, it fails at different points. </p>
  
  <p>I've checked the event log on the local workstation (win7) destination server (win2008R2) but there are no errors that I can see.</p>
  
  <p>This is the lines that randomly fails:</p>
  
  <blockquote>
    <p>$session = New-PSSession -ComputerName $serverName -Credential $credential</p>
  </blockquote>
  
  <p>I did not see this issue on Win2003.  The scripts have not changed.  I'm assuming the problem is on the destination server but cannot find any errors or logs to look at.  It will work once and then fail so my deployment scripts will sometimes succeed and then fail at different points.</p>
  
  <p>Any guidance on tracking down this problem would be much appreciated.</p>