I've got Node Red running on a Pi3. I use it to do some scheduling of operations on various Linux VMs and other Pis, this all works fine with the exec node and passwordless SSH. However I also want to run some operations on a few Windows VMs and I can't see an integrated way to do this, I've certainly not found a Windows Exec node.
I've had a couple of ideas -
Make a share on the Windows machines and mount it on the Pi, write a flag file into it. The Windows machines poll for the file, when it's there, kick off a process. Not nice, tedious to setup, relies on polling, no feedback to Node-Red.
Have an MQTT client on the Windows machines, when an appropriate message is obtained, run a pre-determined command. Return exit code in another MQTT message. No polling, will run immediately, but hard to marry up the outgoing and return messages.
Does anyone have any ideas as to how running commands on Windows machines may be achieved and how to get exit codes returned to node red?