Run a remote batch file to stop services

Posted on 1999-01-07
Medium Priority
Last Modified: 2013-12-23
I need to run a batch file remotely on a NT server to stop services.
Question by:tspoon96
LVL 51

Accepted Solution

ahoffmann earned 80 total points
ID: 1568400
1. install and configure rshsvr.exe  on NT server (don't forget \winnt\sytem32\drivers\etc\.rhosts)
2. write your script on NT server
3. call it from anywhere (where rsh is available)
LVL 23

Expert Comment

by:Tim Holman
ID: 1568401
Alternatively use the Web Administration extension to IIS that comes with the resource kit.
Or a telnet daemon.


Expert Comment

ID: 1568402
Alternatively, use the scheduler service on the remote machine to run the batch job local to the services to be shutdown.

Alternatively use the SC utility from the RK, to remotely start/stop services.
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

LVL 23

Expert Comment

by:Tim Holman
ID: 1568403
Note that you need a remote administration tool to stop / start the scheduler service remotely anyway.
Alternatively, erm...
Is this the point when someone who hasn't even entered a comment yet comes along and asks tspoon96 for an update ?
I suppose it is.

LVL 51

Expert Comment

ID: 1568404
Alternatively I could have posted my answer as comment ..
but it exactly satisfys tspoon96's question (batch && remote)

Expert Comment

ID: 1568405
create a batch file running the following command:
net stop <service name>

and schedule it on the remote server with the AT command.
(the script should be located at the remote server)
LVL 51

Expert Comment

ID: 1568406
livni, don't forget to have the Schedule service started on both machines.

Author Comment

ID: 1568407
I need to stop services on a remote server

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Resolve DNS query failed errors for Exchange
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question