If I’m not mistaken that would require installing software on both homey and the target machines (ssh server).
If not, what would the correct command be to shut down a remote windows machine?
I could also make use of powershell, just not sure if I can automate that. As here it says it will prompt for a password. The net rpc shutdown command includes both username and password so can easily be automated.
So I figured the easiest method to remotely shut down any remote windows machine without having to install software and or change settings on the remote machine is by making use of net rpc.
On Homey I am required to install software for this cause either way, so why not build something that makes shutting down remote computers easy?
Edit: will probably go for the powershell method, as credentials can be entered from a script. And for the stop-computer command powershell remoting is not required, so no settings need to be changed and no clientside software needs to be installed.