Launch a Program on a Remote Server
Sometimes, you may need to execute a program or process on a remote server from another machine. Fortunately, PowerShell provides a command to achieve this.
Applicable to: Windows Server 2022, 2019, 2016, 2012 R2, and 2012
You can use Windows Remote Management with the winrs
command to remotely manage and run programs:
winrs -r:<REMOTE_SERVER> <PROGRAM>
# For example:
winrs -r:my_server cmd.exe
In this example, a Command Prompt will be launched on my_server
from the local machine, behaving as though it was directly executed on the remote server.
No Comments