

#ADD HOST WAKEONLAN INSTALL#
On the Inputs tab, create a Windows credential to connect to the Target you wish to install WSL.
#ADD HOST WAKEONLAN PASSWORD#
On the Inputs tab, create a Windows node for the Target you wish to install WSL. Let’s combine the following 3 commands: C:Program Files (x86)Puttyplink.exe -ssh -pw password rootmachine /sbin/poweroff.There is a 'ubuntu2004.exe' command that needs to be run during setup, which can't run successfully directly from Attune(which uses the WinRM protocol under the hood), as a workaround, we setup a Windows scheduled task to accomplish the task.See this article on setting up WOL in BIOS and Windows.

This feature is useful to control devices remotely. If there is another device(usually another PC, raspberry pi, or even a router which supports running script/app) that is running 7x24, we can use that device to broadcast the Wake on Magic Packet to the LAN, the Target boots up when it sees the Wake on Magic Packet. Which means that a host(Target) is in power off, sleep, or hibernated state. Wake-on-LAN (WOL) is an Ethernet or Token Ring computer networking standard that allows a computer to be turned on or awakened by a network message. In this case, we'll install Ubuntu 20.04. The Windows Subsystem for Linux(WSL) lets developers run a GNU/Linux environment - including most command-line tools, utilities, and applications - directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. Tested on Windows 10/2019(WSL will be installed on this host), the WOL target's OS doesn't matter, it only depends on the NIC's BIOS supporting WOL feature, and of course, the target machine's power cord needs to be plugged in. Then we can use Attune to SSH connect to the WSL(same as a Linux physical machine, or virtual machine), and run the python script there. Before running the WOL python script, we need to install WSL on a Windows host, and setup the WSL to allow SSH connection. This blueprint is used to boot another host in the LAN, through Wake on Lan. Using Attune to install and configure WSL on Win10/Win2019, then running Wake on Lan python script via the newly installed WSL
