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.

Sam Cogan
  • 38,158
  • 6
  • 77
  • 113
mjsr
  • 181
  • 7

1 Answers1

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.

Ben Pilbrow
  • 11,995
  • 5
  • 35
  • 57
  • 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 04: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 01 '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 01 '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