Get-Process to remote computer doesn't work but Invoke-Command does

前端 未结 2 1332
甜味超标
甜味超标 2021-01-06 04:44

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 cur

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 04:50

    Get-Process probably uses the DCOM/RPC remoting protocol instead of Windows Remote Management (WinRM), which is what PowerShell Remoting (eg. Invoke-Command) uses. If you have a firewall blocking DCOM/RPC, then I could see how Get-Process with the -ComputerName parameter would fail. With PowerShell Remoting (via WinRM), all you need to do is open up TCP 5985 (HTTP) and TCP 5986 (HTTPS, optional).

提交回复
热议问题