TeamViewer IoT is hiring! Check out the open positions here!

Posted by TODOAMM

Run script on multiple targets


I've written a simple batch script to pull updates from a git repository and relaunch an electron application. This script needs to be launched on multiple computers, is it possibile to do so from the management console? Perhaps running the script on all computers in a group?

So far I've only found the option to launch a script on a single target when I'm already connected (and i need remote script execution enabled for that) but I'm looking for options to do the same on all computers in a single action.

I thought about using the API to retrieve the list of computers and then connecting and running the batch on each one, but i can't find a way to run a script from the API, is that possible?