Start service on remote computer?

  • Thread starter Thread starter RUL
  • Start date Start date
R

RUL

Is it possible to use a *.cmd or *.bat file to start a
service on another computer in the network?
 
You could use a combination of psexec.exe (to hop onto another
machine) and net.exe start (to start a service).
 
Hi Rul-

Yes it is.

--
Thanks,
Richard Moreno
MCSE, MCSA, Server+, Network+

*This posting is provided "AS IS" with no warranties, and confers no
rights.
 
RUL said:
Is it possible to use a *.cmd or *.bat file to start a
service on another computer in the network?

Hi

A)
Sysinternals has a command line utility PsService.exe that can do this:

http://www.sysinternals.com/ntw2k/freeware/pstools.shtml


B)
You can use Microsoft's command line utility SC.exe for this.

For WinXP, SC.exe is built in. Look up SC.exe in WinXP's "Help and Support
Center".

For Win2k:

Many of the ResKit utilities, including SC.EXE are available free at:

ftp://ftp.microsoft.com/reskit/win2000/

and

http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp

More about SC here:
Sc.exe: Service Controller Tool
http://www.tburke.net/info/reskittools/topics/sc.htm
 
Pegasus (MVP) said:
You could use a combination of psexec.exe (to hop onto another
machine) and net.exe start (to start a service).

Or just use PsService.exe that has remote support builtin...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top