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

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.
 
L

Lanwench [MVP - Exchange]

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?
 
J

Jerold Schulman

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
 

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

Top