How to dispatch a command from Windows to Windows
How do I script remote commands on other Windows computers from a Windows computer?
E.g., on *nix-*nix networks, I can do ssh wu@otherbox foo
, and provided the keys are set up correctly, foo
runs and the ssh client returns the return code.
psexec - http://technet.microsoft.com/en-us/sysinternals/bb897553
PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software.
Another option is to write a powershell or vbscript (using WMI).
The WMI command line tool is a good choice:
wmic.exe /node:somecomputer process call create "c:\bin\uphclean\uphclean.exe -install"