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

前端 未结 2 1305
甜味超标
甜味超标 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 05:08

    I ran across this error my self today, the solution in my case (I already had enabled port 5985) the problem occurred because of my firewall blocked port 445 (on the target).

    As soon as this port was enabled I was able to use,

    Get-Process -ComputerName dc01
    

    and

    Get-Service -ComputerName dc01
    

    However I do recommend you read this page: https://www.grc.com/port_445.htm as it seems that some security issues may appear upon allowing this port toward the Internet.

    My symptoms was exactly as OP descripes...

提交回复
热议问题