• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 817
  • 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
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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