This project is read-only.

Functional Requirements

  1. Administrator Access - You must have remote administrator access to your computers.
  2. A .csv List File - You need to have a list of you computers with the Name, IP, Subnet, MAC. See the example.csv file.
  3. Awake Computers - lanWOLf utilizes computers already awake on each subnet to wake sleeping computers. See documentation for creating "Master Computers" on your network.
  4. Computers configured to use WOL to boot.

Program Requirements

  1. Powershell 2 - This requirement is for the computer running the script.
  2. PsExec
  3. WolCmd -

How To Use

  1. Download lanWOLf.ps1 and the required psexec and wolcmd, place the files where they make sense to you.
  2. Create a .csv file with the following minimum columns:
    • NAME - Name of computer
    • IPADDR - Ip address (
    • IPSUBNET - Subnet of computer (01:23:45:67:89:AB)
    • MACADDR - MAC address (
    note: If you have more fields it should be fine.
    note: See the example.xml in the downloads section.
  3. Configure the settings in lanWOLf.config.xml
  4. Execute in powershell. Choose the subnet you wish to wake from the menu.
    PS C:\scripts\wol> .\lanWOLf.ps1
    Found input file "\\Server1\Lists\Workstations.csv".
            0)     All Subnets
     Which subnet you would like to wake?: 1
     You choose 1Waking
            Looking for a Master
            >> Pinging WST1D05689
            >> Checking WST1D05689 wolcmd.exe
            >> WolCmd.exe available on WST1D05689
            >> Master: WST1D05689
            Send WOL Signal
            >> Sending WOL to WST1P618489 ( (00:14:55:66:77:88)
            >> Sending WOL to WST1D154468 ( (00:1E:0B:11:22:33)
            >> Sending WOL to WST1D568941 ( (00:1E:11:22:33:44)

    PS C:\scripts\wol> 

"Master" Computers

A "Master" is a computer that can always be counted on to be powered up. There are a couple of things you can do to create a master for each subnet.

  • Store a dedicated computer in a closet so no one can turn it off.
  • Disable power saving features such as sleep and hibernate modes.
  • Configure BIOS to power on computer at certain times of the day.
  • Configure BIOS to power on computer when power is restored, such as in the case of a power black-out.

Last edited Oct 5, 2012 at 10:50 PM by beanska, version 10


No comments yet.