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.
Any solution let me know.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With