Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script How-To's

Status
Not open for further replies.

qmann

IS-IT--Management
May 2, 2003
269
CA
I have never written a script and i want to be able to start and stop a service as well as restart the server. Is there any literature on the net that gives a good head-start to a newbie to scripting.
 
Here's a quick start for you

You need to use the NET START and NET STOP commands, and the shutdown.exe which is from one of the resource kits.

In a .bat or .cmd file

NET STOP "sevice name" - double quotes required
exit



 
net start and stop are somewhat limited.
there's a really excellent tool called sc.exe from an nt reskit.


I used it to stop and disable the messenger service, on all the computers on our network
from the comfort of my office hehe

this website has a tremendous amount of usful stuff about all kinds of scripting:


this place is really good for dos command explanations:





===============
Security Forums
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top