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. PsExechttp://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
  3. WolCmd - http://www.depicus.com/wake-on-lan/wake-on-lan-cmd.aspx

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 (192.168.1.55)
    • IPSUBNET - Subnet of computer (01:23:45:67:89:AB)
    • MACADDR - MAC address (192.168.1.0)
    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
            1)     10.5.1.0
            2)     10.5.2.0
            3)     10.5.3.0
            4)     10.5.4.0
            5)     10.5.5.0
     Which subnet you would like to wake?: 1
     You choose 1Waking 10.5.1.0
            Looking for a Master
            >> Pinging WST1D05689
            >> Checking WST1D05689 wolcmd.exe
            >> WolCmd.exe available on WST1D05689
            >> Master: WST1D05689
            Send WOL Signal
            >> Sending WOL to WST1P618489 (10.5.1.148) (00:14:55:66:77:88)
            >> Sending WOL to WST1D154468 (10.5.1.122) (00:1E:0B:11:22:33)
            >> Sending WOL to WST1D568941 (10.5.1.190) (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 9:50 PM by beanska, version 10

Comments

No comments yet.