Solved

Run a remote batch file to stop services

Posted on 1999-01-07
8
806 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
8 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 40 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 23

Expert Comment

by:Tim Holman
Comment Utility
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
New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
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
Comment Utility
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
Comment Utility
livni, don't forget to have the Schedule service started on both machines.
0
 

Author Comment

by:tspoon96
Comment Utility
I need to stop services on a remote server
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now