Windows RPC error service command (sc.exe or psservice)

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

The RPC server is unavailable.

  • I have an admin introduction to this machine.

Any solution will let me know.

+4
source share
6 answers

In my case, I got this error because I messed up the name of the server I was aiming for. This will give you this error if you do not accidentally indicate it. In my case, the server name was a variable defined from a text document, so it took me a while to figure out.

Also note: there really should be two lines in front of the machine name (I'm sure this is just a typo, but just in case, this can confuse someone).

+6
source

Error 1722: RPC server is unavailable. Make sure that the RPC service (Remote Procedure Call (RPC)) is running on the remote computer using telnet, try the command line:
*> telnet your.server 135

If no errors occur, the RPC server is probably working fine than checking system events for problems.

+3
source

6 years later, but anyway.

Enable file and printer sharing on the remote computer and it will work.

https://support.microsoft.com/en-us/kb/323790

+3
source

Have you added an exception to the firewall?

0
source

I tested my local machine run SC QUERY on PCxxxx4

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

SC nice ..! :)

0
source

You need to make sure the DNS service of the client is not stopped. This fixes the problem.

0
source

All Articles