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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting and Stopping a service

Status
Not open for further replies.

bwallens

MIS
Apr 4, 2001
9
US
Hi..
I was wondering if any of you have heard of a way to stop/start a service via the command line or a vbscript.
Any ideas?
Thanks,
Ben
 
If you have the real name of the service, you can do it using the NET command.

NET STOP servicename
NET START servicename

You may need to browse the registry to get the official name of the service, because it may not be what is displayed in the services icon in control panel.


Hope this helps ... :cool: - Bill

"You can get anything you want out of life, if you'll just help enough other people get what they want" - Zig Ziglar
 
You might also want to look at the netsvc command from the NT Resource Kit. You can list, stop, pause, start, etc services remotely from the command line.

Example: NETSVC server \\joes486 /query
Example: NETSVC "Clipbook Server" \\popcorn /stop


- Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top