title: how to modify my server to easly invoke remote commands in Powershell
body: <p>I have server (with <em>Microsoft Windows Server 2003 R2 SE</em>; manually installed WinRM) when I can enter remote session by simply typing:</p>
  
  <blockquote>
    <p>Enter-PSSession *computername_here*</p>
  </blockquote>
  
  <p>or (outside remote session) invoke remote command:</p>
  
  <blockquote>
    <p>Get-Process -ComputerName *computername_here*</p>
  </blockquote>
  
  <p>Unfortunately on another (with <em>Microsoft Windows Server 2008 R2 SE</em>) it doesn't work (although I use the same configuration). I need to enter (according to first example):</p>
  
  <blockquote>
    <p>Enter-PSSession <code>IP address</code> -Credential "domain\username"</p>
  </blockquote>
  
  <p>and after it give username and password.
  I'm aware that it's possible to save credentials to external file, but I wan't to do something to connect to remote server as simply as in case of first server?
  Should I check firewall or configure in special way my server?</p>
  
  <p>==================================================================
  <p>Thank you for answer. I'm talking about "Microsoft Windows Server 2008 R2 Standard" OS <br>(as "*gwmi win32_operatingsystem |select name*" command told me).</p>
  
  <blockquote>
    <p>WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Client</p>
  </blockquote>
  
  <p>contain property <em>TrustedHosts</em> set to *, so I assume that it's correct.</p>
  
  <p>It's interesintg that although I have administrator rights on both machines, I get an error message when I try to check what "localhost" contains not directly from the server, but from my local computer:</p>
  
  <blockquote>
    <p>PS WSMan:\localhost> ls <br>
      Access is denied.
        + CategoryInfo          :
        + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetChildItemCommand</p>
  </blockquote>