Solved

Run a remote batch file to stop services

Posted on 1999-01-07
8
809 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
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change Time 5 57
What ports to open for KMS on an L7 Application based firewall? 1 83
AD Account Lockout 22 53
Why does my public IP keep changing? 6 63
FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

808 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