Glam Prestige Journal

Bright entertainment trends with youth appeal.

How can I run a program on a remote Windows PC in our network without the need of killing an existing remote-desktop-connection? I only need a command line for running the program and getting its results.

0

2 Answers

I think you're looking for PsExec

This is what you'd do to execute a CLI program on a remote computer using PsExec:

psexec \\REMOTECOMPUTER "path_to_program_executable"

You can learn more about PsExec and its various options along with some examples here

4

On more option is the built in winrs

winrs.exe -r:<RemoteComputerName> <TheCommandToRun>
winrs.exe -r:MyRemoteServer ipconfig

winrs vs. psexec

advantages winrs

  • Built in, no download needed
  • Faster and more reliable than psexec

advantages psexec

  • Works with IP (winrs needs the computername (NetBIOS name) of the machine)
  • Can run processes in system-context

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy