Run a script on remote server

Started by erezpaz, May 01, 2015, 09:29:29 AM

Previous topic - Next topic

erezpaz

Hi,

Is there a command to run a script on remote server as MS Psexec does?
I cannot use Psexec due to license issues.

Thanks
Erez

td

Psexec.exe is certainly the best choice and WinBatch doesn't have a function that can duplicate it.   You could try using WMI but it is often stymied by security features and disabled services.  An example can be found here

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/WMI+Run~an~Application~on~a~Remote~Computer.txt

or here

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/WMI+WMI~and~Remote~Interactive~Desktop~Scripts.txt

The WinBatch ObjectCreate function can be used to create COM Automation objects on remote computers but again this method is often thwarted by security features and service requirements.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade