Enable Wake On LAN settings on NIC in Windows

Set the Windows-side Wake-On LAN settings on the NIC that is currently CONNECTED "Allow the device to wake the computer" to CHECKED "Only allow a magic packet to wake the computer" to CHECKED "Energy Efficient Ethernet" to OFF Fast Startup to DISABLED (Windows 8-10)

 
 
 
 
 
5 Star
(1)
3,488 times
Add to favorites
Networking
3/20/2019
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • foreach
    3 Posts | Last post December 08, 2019
    • Great script...
      Can you update the script with "foreach"?
      I made a configuration change "$nic = Get-NetAdapter | ? {(($_.name -like "Ethernet*") -or ($_.name -like "Wi*") -and ($_.status -notlike "NOT*" ))}"
      
      Now i would like your script to execute foreach adapter found
      
      Thanks
      Magnus
    • Hi Magnus,
      
      It sounds like you might be trying to also enable WoL on a WiFi adapter? If so, I don't believe WoL will wake a computer that is only connected to WiFi. I don't believe WiFi functions in the power state required, meaning, when the computer is asleep or "off" (power state S3 or S4, I believe?). Maybe this has changed recently?
      
      For wired connections, the script is designed to make the necessary changes on whatever wired nic is currently connected. Unless this is a multi-homed computer, there should be only one nic connected at any given time.
      
      But I may be misunderstanding what you are looking to achieve? Let me know.
      
      Thanks!
    • Hi DarkMallard,
      
      there are NICs out there that support such a mode. It's called "WoWLAN - Wake on WLAN". We have some DELL Vostro at work that do support this via BIOS settings.
      
      Cheers.
  • Some Corrections
    3 Posts | Last post April 19, 2019
    • Needed some minor adjustments in my environment, and does not seem to work on any kind of laptop with a dock/port replicator we currently have allocated.  Also, in the last block of could, -PropertyType should be -Type when you set the DWORD.  Otherwise, good script!!!
    • Thanks for the note! 
      
      I had not had an opportunity to test on docked/port-replicated laptops.
      
      I also corrected the -PropertyType to -Type.
    • I learned the hard way that port replicators (at least those from Dell) do not support WoL.  If you read the fine print in their documentation it says to support WoL you need to plug an ethernet cable into the notebook itself.
  • Problem on Windows 10
    2 Posts | Last post March 20, 2019
    • Does not seem to work at all on Windows 10.  I guess some of the WMI Objects have changed?
    • I tested this on Windows 8.1 and Windows 10 up to 1809, and it appears to work. I would be interested to see any errors or other info you have, so I can take a look further.