Aaron
Aaron

Reputation: 3325

Start a program or filepath remotely

With XP machines and eventually win7 machines. I am trying to find a way to start a program remotely from the commandline or even powershell if possible. Right now we can kill tasks using the "taskkill" command, but there doesn't seem to be an easy way to start them without extra programs. I want to be able to do it without deploying anything. I tried that Psexec but that didnt work.

Upvotes: 0

Views: 369

Answers (1)

user3023139
user3023139

Reputation: 11

Invoke-Command -ComputerName server01 -ScriptBlock { yourprogram.exe }

Check out technet:

The Invoke-Command cmdlet runs commands on a local or remote computer and returns all output from the commands, including errors. With a single Invoke-Command command, you can run commands on multiple computers.

http://technet.microsoft.com/en-us/library/hh849719.aspx

Upvotes: 1

Related Questions