title: Powershell connecting from a linux client to a windows remote
body: <p>I am trying to remotely connect to a windows machine from my Linux workstation.</p>
  
  <p>I installed powershell on my Arch Linux workstation and I am currently trying to connect to the host.</p>
  
  <p>On the host:</p>
  
  <p><code>Enable-PSRemoting</code></p>
  
  <p>Then allowed all hosts with
  <code>Set-Item wsman:\localhost\client\trustedhosts *</code></p>
  
  <p>Checking everything with:</p>
  
  <pre><code>PS C:\windows\system32&gt; ls WSMan:\localhost\shell
  
  
     WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Shell
  
  Type            Name                           SourceOfValue   Value
  ----            ----                           -------------   -----
  System.String   AllowRemoteShellAccess                         true
  System.String   IdleTimeout                                    7200000
  System.String   MaxConcurrentUsers                             2147483647
  System.String   MaxShellRunTime                                2147483647
  System.String   MaxProcessesPerShell                           2147483647
  System.String   MaxMemoryPerShellMB                            2147483647
  System.String   MaxShellsPerUser                               2147483647
  </code></pre>
  
  <p>Now when I try to connect from Linux workstation:</p>
  
  <pre><code>PS /home/user/tmp&gt; Enter-PSSession -ComputerName "myuser" -Credential DOMAIN\myuser
  
  Windows PowerShell credential request
  Enter your credentials.
  Password for user DOMAIN\myuser: *****************
  
  Enter-PSSession : MI_RESULT_ACCESS_DENIED
  At line:1 char:1
  + Enter-PSSession -ComputerName "myuser" -Credential DOMAIN\ajpalhare ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (myuser:String) [Enter-PSSession
     ], PSInvalidOperationException
      + FullyQualifiedErrorId : CreateRemoteRunspaceFailed
  </code></pre>
  
  <p>I don't anything on the the winrm windows event logs.</p>
  
  <p>Any suggestions welcome,</p>