Starting and stopping services remotely on WindowsXP/2003/Vista

The_Unbeliever

Honorary Master
Joined
Apr 19, 2005
Messages
103,193
Reaction score
10,233
Location
Nkaaaaandla
Hi there

Anybody have experience with remotely starting and stopping services from the command line in Windows?

I want to write a batch file to enable one PC to stop a specific service on a couple of windowsXP PC's, do some processing, then start the service up again after processing completed.

Regards

Libs
 
use the sc command.

sc \\servername stop shortservicename

This generally works easily in a domain environment. Workgroup environment may give authentication issues
 
Psservice in the same package from sysinternals will do exactly what you want.
You can even use it to scan every Pc on your network for a specific service.

Can set service modes as well (auto, disabled, manual, etc)
 
Top
Sign up to the MyBroadband newsletter
X