0

I would like to know how I can run remote applications on Windows Machines. Until now I have been using Windows Powershell remote, that works fine, but only to execute cmdlets. I want to be able to execute any command line application, like launch a Vim session, a Diskpart utility, etc.

2

You should be able to use the psexec utility from SysInternals to run commands on remote computers.

The syntax to launch a remote command prompt is psexec \\REMOTE-PC cmd.

  • if the computer don't belong to the same local network, what are the options? I try to use the IP address but it doesn't work. – mjsr Jan 24 '11 at 4:09
  • I'm not completely sure what you mean by 'local network'. If the machine is not part of your authentication domain, you'll need to supply credentials. – RobW Feb 1 '11 at 17:08
  • I'm not completely sure what you mean by 'local network'. If the machine is not part of your authentication domain, you'll need to supply credentials. PSExec -? will give you the parameters. – RobW Feb 1 '11 at 17:17
  • @msjr The double backslash is still needed even if you are using IP address ("psexec 10.15.10.15 cmd"). And as RobW says: You can supply credentials by using the -p and -u parameters. – Björn Oct 10 '13 at 12:37

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.