• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 826
  • Last Modified:

Run a remote batch file to stop services

I need to run a batch file remotely on a NT server to stop services.
0
tspoon96
Asked:
tspoon96
1 Solution
 
ahoffmannCommented:
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
 
Tim HolmanCommented:
Alternatively use the Web Administration extension to IIS that comes with the resource kit.
Or a telnet daemon.

0
 
carmineCommented:
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Tim HolmanCommented:
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
 
ahoffmannCommented:
Alternatively I could have posted my answer as comment ..
but it exactly satisfys tspoon96's question (batch && remote)
0
 
livniCommented:
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
 
ahoffmannCommented:
livni, don't forget to have the Schedule service started on both machines.
0
 
tspoon96Author Commented:
I need to stop services on a remote server
0
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

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now