Home » Questions » Computers [ Ask a new question ]

How can I resolve this error when using net start / stop: "The service name is invalid"?

How can I resolve this error when using net start / stop: "The service name is invalid"?

We have a server that hosts a service (I'll call it "tomato").

Asked by: Guest | Views: 79
Total answers/comments: 1
Guest [Entry]

"the ""net start/stop"" commands can only start or stop services locally, on the same computer. You cannot use it to start or stop services running on another computer.

For this, you could use for instance psservice, part of the PsTools from Sysinternals. With the right parameters, you can control services on a remote computer, providing you have the correct credentials to do it.

Using PsService

The default behavior of PsService is
to display the configured services
(both running and stopped) on the
local system. Entering a command on
the command-line invokes a particular
feature, and some commands accept
options. Typing a command followed by
""- "" displays information on the
syntax for the command.

Usage: psservice [\computer [-u
username] [-p password]] command options"