title: Get-Process to remote computer doesn't work but Invoke-Command does
body: <p>I have a 2 servers running Windows Server 2012 R2. One of them is hosting a virtual machine running Windows 7 32-bit, and I am trying to use the other server to view the currently running processes of the virtual machine.</p>
  
  <p>I had to use Enable-PSRemoting -SkipNetworkProfileCheck for anything to work. I also had to add the computers to each others TrustedHosts lists.</p>
  
  <pre><code>Get-Process -ComputerName VM01
  </code></pre>
  
  <p>will return a "Couldn't connect to remote machine". However, </p>
  
  <pre><code>Invoke-Command -ComputerName VM01 -ScriptBlock {Get-Process}
  </code></pre>
  
  <p>works just fine. What is the difference between using Invoke-Command and using the Get-Process with a ComputerName argument? In case it is important, I can also use Enter-PSSession without any problems</p>