Link to home
Start Free TrialLog in
Avatar of cebu1014
cebu1014

asked on

Remote Service Stop on XP Machine

All machines are XP PRO

I have this batch file to run service stop and start on the desktop of machine(called server) that runs data engine for our software. How do accomplish same thing with a networked PC  that is  merely a client.


@echo off
echo "Restarting Pervasive Services"

NET STOP "PERVASIVE.SQL (RELATIONAL)"
NET STOP "PERVASIVE.SQL (TRANSACTIONAL)"
NET START "PERVASIVE.SQL (RELATIONAL)"
NET START "PERVASIVE.SQL (TRANSACTIONAL)"
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or you could also use PStools to run the same bat command on the remote systems.

Info:
http://technet.microsoft.com/en-us/sysinternals/bb896649

Download:
http://download.sysinternals.com/files/PSTools.zip

Using PsExec
http://technet.microsoft.com/en-us/sysinternals/bb897553
Examples and usage:
http://www.windowsitpro.com/article/remote-computing/psexec

I hope that would help.

Sudeep
Avatar of cebu1014
cebu1014

ASKER

Thanks