I have a batch file which stops a service and deletes a file from d:\ drive.
I want to execute this on 20 servers.
Is there a quicker way than manually logging on each server, copying and running batch file?
Run a batch file on remote servers
batch-file
Related Topic
- Server 2008 issue running batch file
- Windows – clear out the same directory on multiple servers across a network. How to do this
- Run batch files as administrator user
- Run exe on computer in network through batch file
- Batch File to Loop Through Folders and Process If Specific File Found
- Run an executable on a remote computer with a batch file
- Windows – Start /wait in batch file stops waiting after ~5 minutes
Best Answer
You could try using PsExec. If the batch file is present in all machines at same location, then you could mention the list of machines in a text file and give it as an argument to this.Something like,
If you dont have it on remote machine, you need to copy the batch file and then execute it using,