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

Start/Stop services from a remote machine 1

Status
Not open for further replies.

fagan666

MIS
Jul 17, 2002
11
US
Does anyone know how to start/stop services from a remote machine? The server is NT 4.

Thanks.
 
You may want to try netsvc.exe (included in NT resource kit). Here's the syntax.

Controls and displays the status of services.

NETSVC servicename \\computername /command

servicename Name of the service
computername Name of the computer to administer.
/command One of the following:
/query Queries the status of the service.
/start Starts the service.
/stop Stops the service.
/pause Pauses the service.
/continue Starts the paused service.
/list Lists installed services (omit servicename)

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

Arguments are allowed in any order.

Hope this helps.
 
you could just use server manager, if you dont have admin rights to the box, just map to the admin share.
 
MrTickle,

I'm kicking myself for not thinking of svrmgr, but I have a need to do this via a batch file, so...

Thanks for the heads up & for giving me a sore butt!
 
You could also use the at command to schedule the service to start/stop from command line.

Something like

at \\computername time net stop "Service name"
 
Just to muddy the waters further, you could buy hyena or dameware - both of which are excellent tools for a lazy sysadmin like me!

 
dentarthurdent,

I try to be as lazy an admin as possible! Gotta look into those. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top