Wake-On-LAN from a list in a text file

Wake-On-LAN from a list in a text file

In a previous post, I shared a script that turned on by default 3 computers in the same subnet, but more could be added if the script was modified.

To ease turning on more computers, I created a version of the script that will attempt to turn on all the computers set in a text file.

Each computer is represented by a line in the text file, with each value separated by a “;“.

Computer-Name;Computer-IP;Computer-MAC;Computer-Subnet;Computer-Port

Necessary values to turn on the computer.

An example of a text file and the script running can be reviewed below.

The script has a feature that generates a list in a “.txt” to a folder of your choice with all the computers that failed to reply to a ping after the wake on LAN magic packet was sent.