# Exec Node to send command to windows machine

**URL:** <https://discourse.nodered.org/t/exec-node-to-send-command-to-windows-machine/36453>\
**Category:** General\
**Created:** [24 November 2020 14:22 UTC](https://discourse.nodered.org/t/exec-node-to-send-command-to-windows-machine/36453 "2020-11-24T14:22:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drumstick77](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@drumstick77](https://discourse.nodered.org/u/drumstick77)\
**Post date:** [24 November 2020 14:22 UTC](https://discourse.nodered.org/t/exec-node-to-send-command-to-windows-machine/36453/1 "2020-11-24T14:22:21Z")

</div>

Hi all, just wondering if this is possible....scenario that I'm in is....  
I've got node-red on linux installed on a VM.  
I would like to be able to send windows command to a windows laptop to remotely shutdown or sleep the machine.  
How can this be achieved without installing anything on the windows machine end? thanks

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 November 2020 23:54 UTC](https://discourse.nodered.org/t/exec-node-to-send-command-to-windows-machine/36453/2 "2020-11-24T23:54:58Z")

</div>

There are lots of ways. But the simplest would probably be to run Node-RED on the windows PC and use a TCP connection (or HTTP, WS, MQTT, etc) between them.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 January 2021 23:55 UTC](https://discourse.nodered.org/t/exec-node-to-send-command-to-windows-machine/36453/3 "2021-01-23T23:55:01Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
