title: WinRM cannot process the request
body: <p>"Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090304 occurred while using Negotiate authentication: An unknown security error occurred."  </p>
  
  <p>I'm attempting to run scripts remotely to non-domain servers and the clients are also not part of a domain since our environment is based on MicroFocus eDirectory.  </p>
  
  <p>I've configured/tried the following on both client AND server:  </p>
  
  <pre><code>winrm quickconfig
  WinRM set winrm/config/client @{TrustedHosts="*"}
  Set-item wsman:localhost\client\trustedhosts -value *  
  </code></pre>
  
  <p>And again, none of the machines are part of a domain but I assumed it would work with trustedhosts.  </p>
  
  <p>Code attempting to authenticate looks like this:  </p>
  
  <pre><code>[xml]$windows=(Get-Content P:\script\windows.xml)
  
  $windows.servers.host | ForEach-Object {
  
  $password = ConvertTo-SecureString $_.pass -AsPlainText -Force
  $credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "$_.name+$_.user",$password
  
  Invoke-Command -ComputerName $_.name -Credential $credential -ScriptBlock {Get-Culture}
  }  
  </code></pre>