windows – How to run a program over the network using a bat file?

Question:

How to run a program over the network using a bat file?

For example, I execute the command over the network:

taskkill / s 10.10.10.10 / IM Name.exe

This command ends the Name.exe process. Working. How to start this process again? Or an exe file (the location of the file is known).

Answer:

The Sysinternals Suite includes the psexec utility:

psexec \\10.10.10.10 <путь_к_программе_на_удаленной_машине>

(you may need the -u , -p options to specify the username / password to connect to the machine)

Scroll to Top