title: How do I get remote PowerShell scripts to run? Enable-PSRemoting isn't working
body: <p>We're both on the same domain and I've enabled PSRemoting on both machines, but for some reason my remote scripts won't run. The execution policy is unrestricted, but here are the messages I am getting:</p>
  
  <pre>
  Get-Process : Couldn't connect to remote machine.
  At line:1 char:1
  + Get-Process -ComputerName 10.xxx.xx.xx
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Get-Process], InvalidOperationException
      + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetProcessCommand
  
  Get-EventLog : The network path was not found.
  At line:1 char:1
  + Get-EventLog -LogName Application -ComputerName 10.xxx.xx.xx
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Get-EventLog], IOException
      + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.GetEventLogCommand
  </pre>
  
  <p>I'm running PSVersion 5.1 and PSRemotingProtocolVersion 2.3 on both machines, does anyone have any suggestions?</p>
  
  <p>After more research, I enabled remote server management (WinRM) and allowed remote PowerShell access on both machines and it still is giving me the same error messages above for those basic cmdlets above, BUT it will let me enter a session on the remote machine using <code>Enter-PSSession</code>. I'm at a loss here, cause the workaround is  decent but idealy I'd like to actually run scripts remotely.</p>