user599084
user599084

Reputation: 171

Why would a get-process -computername return a couldn't connect to remote machine error?

I can execute the following command on a specific machine and it can return a list of processes on several target computers but returns a "Couldn't connect to remote machine" error on one machine.

get-process -ComputerName 192.168.1.101

What would prevent me from getting a list of processes from a remote machine using powershell?

Upvotes: 2

Views: 12131

Answers (2)

user599084
user599084

Reputation: 171

It turns out the machine that was returning the error did not have the Remote Registry service started. Once I started this service the "Couldn't connect to remote machine" error went away. This blog post helped me find the solution http://sebastienlachance.com/post/ProcessGetProcesses-common-errors.aspx

Upvotes: 5

Jaykul
Jaykul

Reputation: 15824

I think it uses WMI, so if the service isn't running, that would do it. Can you execute Get-WMIObject queries against those PCs at all?

Upvotes: 0

Related Questions