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

remotely start/stop services

Status
Not open for further replies.

peterve

IS-IT--Management
Joined
Mar 19, 2000
Messages
1,348
Location
NL
How can I remotely start & stop a service (by commandline)
I've tried netsvc.exe from the NT4 resource kit, but when I tried to stop a remote SQL Server, all it said was that the service is running... (yes, I know it is running, I want to stop it you silly server) :-)

netsvc "MSSQLSERVER" \\servername /stop
Service is running on \\servername

Can anybody point me to a Win2K tool that actually works ?

Thanks



I have not failed, I just found 10000 ways that don't work

Peter Van Eeckhoutte
peter.ve@pandora.be

Did this post help ? Click below to let me know ;-)
 
duh... I had to stop the sqlserveragent as well of course...
so.. it DOES work ! I have not failed, I just found 10000 ways that don't work

Peter Van Eeckhoutte
peter.ve@pandora.be

Did this post help ? Click below to let me know ;-)
 
Hi Peterve,
IN W2K you dont need to worry,just simply install terminal service on server and client software(32-bit)on client machine wich resides in tsclient folder and that's all.
Use remote administration mode wich allows two connections.
Than you have all available server's interface to do everything you want.Than you can start and stop services
all day long.Isn't that great?!Of course it's not command line but doing like that you are absolutly sure that your
command succeed.
 
I wanted to stop and start services from a remote ArcServe server (using the pre/post scripts), so no user interaction is allowed... I have not failed, I just found 10000 ways that don't work

Peter Van Eeckhoutte
peter.ve@pandora.be

Did this post help ? Click below to let me know ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top