?
Solved

Run a remote batch file to stop services

Posted on 1999-01-07
8
Medium Priority
?
815 Views
Last Modified: 2013-12-23
I need to run a batch file remotely on a NT server to stop services.
0
Comment
Question by:tspoon96
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 51

Accepted Solution

by:
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)
0
 
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.

0
 
LVL 5

Expert Comment

by:carmine
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.
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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.

{waits}
0
 
LVL 51

Expert Comment

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

Expert Comment

by:livni
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)
0
 
LVL 51

Expert Comment

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

Author Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

801 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