VishalMistry
2nd August 2015, 19:56
Hello,

Is there any way to start / stop windows service on remote computer through baan session ?

I have tried run.prog but no luck.
e.g. Our Baan server is 192.168.0.102 and the service we want to control is on 192.168.0.105.

Pl guide in this regard.

Vishal

bhushanchanda
3rd August 2015, 08:54
Hi,

Its doable.

You can use -

sc \\remote_ip start <service>

e.g.

sc \\192.168.0.105 start "Computer Browser"

similarly stop, restart etc can be done.

If it doesnt work directly from Baan, it might need Admin Privileges. In that case, you might need to create a scheduled task which will run a bat file with this command. And then run command from Baan to run this scheduled task.