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.

Answers


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


Need Your Help

Convert Java List to Javascript Array

java javascript android arrays list

I have the following java code in my Android application and wanted a way to convert the Java list to an array that can be used in javascript:

Writing a partial name in the DOM with Handlebars/assemble

handlebars.js grunt-assemble

I want to write an HTML comment before and after each partial, with the path or name of the partial, to the guys who shall implement it.