how to create a batch file to start/stop a service

  • Thread starter Thread starter TJ
  • Start date Start date
T

TJ

Hi Folks:
I need assistance on how to create a bacth file to stop
and start services. A domain user which does not have
admin rights to the workstation will be executing these
batch files. Please advise.
 
TJ said:
Hi Folks:
I need assistance on how to create a bacth file to stop
and start services. A domain user which does not have
admin rights to the workstation will be executing these
batch files. Please advise.

Well -

net stop <service name>
net start <service name>

should do it, but where is this user supposed to be doing this? If they
don't have rights to stop/start services, this won't help.

What's the ultimate goal?
 
Hi Folks:
I need assistance on how to create a bacth file to stop
and start services. A domain user which does not have
admin rights to the workstation will be executing these
batch files. Please advise.
To grant an ordinary user the right to start and stop a service, see tip 4673 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top