Take the 2-minute tour ×

I am getting the following error when i try to run the command from remote machine C:>sc \machinename query [SC] OpenSCManager FAILED 1722:

The RPC server is unavailable.

  • I have admin previlages to that machine.

Any solution let me know.

share|improve this question
add comment

4 Answers

In my case I got this error because I was messed up the name of the server I was targeting. It will give you this error if you accidentally point it at nothing. In my case, the server name was a variable being defined from a text document so it took a while for me to realize.

Also noteworthy: There should actually be two slashes before the machine name (I'm sure it's just a typo, but just in case it could confuse anybody).

share|improve this answer
add comment

The error 1722 is : The RPC server is unavailable. Verify if RPC service (Remote Procedure Call (RPC)) is running at remote machine with telnet, try at command line:
*>telnet your.server 135

If no errors occurs the RPC server is probably ok, than check system events for issues.

share|improve this answer
add comment

Did you add the exception to the firewall?

share|improve this answer
add comment

I tested on my localmachine run SC QUERY on PCxxxx4

I tested from another machine on the network run SC QUERY on PCxxxx0

SC is nice..! :)

share|improve this answer
add comment

Your Answer


