Some ideas to work with:
-Use something like NRPE / NSClient++ (thats what i do) to open a specific port and trigger the script on PC2 in the user context of the current logged in user on PC2 or
-VPN / SSH / Tunnel to PC2 or
-Send E-Mail to PC2, fetch the inbox, watch and match for “magic word” and trigger the script (very Aladin, i know)
Hey! I was asking this question myself as well. You should differentiate between the operation system on the PC in question though. For Linux remotes it is quite famous to go with ssh remote executions (see the forum for examples). That’s however not trivial and many fail at using ssh and/or the exec binding correctly.
I can recommend a solution by the help of MQTT. For Windows remotes check the following threads, there are MQTT remote control clients for other OSs as well.
Thanks for recommend WinThing. That’s exactly what I’m looking for. I also discovered nircmd. Although nircmd doesn’t actually address the original problem of getting the input from openHAB it’s an excellent / nifty little tool for actuating things on Windows machines. Every Windows power user / system manager should know about it…