Skip to content

wol_enable.ps1

Corey Watson edited this page Dec 24, 2025 · 2 revisions

wol_enable.ps1

Enable Wake-on-LAN in BIOS/UEFI and Windows NIC settings for Dell, HP, and Lenovo systems.

Overview

Enables Wake-on-LAN (WOL) in both BIOS/UEFI and Windows NIC settings. Supports Dell, HP, and Lenovo systems with manufacturer-specific BIOS modules. Also enables WOL on all capable network adapters in Windows.

Purpose

Enables Wake-on-LAN (WOL) in both BIOS/UEFI and Windows NIC settings. Supports Dell, HP, and Lenovo systems with manufacturer-specific BIOS modules. Also enables WOL on all capable network adapters in Windows.

Prerequisites

  • Windows 10/11
  • Admin privileges required
  • Internet connectivity for module installation
  • Supported manufacturer: Dell, HP, or Lenovo

Configuration

Required Inputs

None - script auto-detects manufacturer and configures accordingly.

Settings

  • Dell: Uses DellBIOSProvider module, sets WakeOnLan to "LANOnly"
  • HP: Uses HPCMSL module, sets Wake On Lan to "Boot to Hard Drive"
  • Lenovo: Uses WMI, sets WakeOnLAN to "Primary"
  • Windows: Enables MSPower_DeviceWakeEnable on all capable NICs

Data Sources & Priority

  1. System manufacturer detection (CIM)
  2. Manufacturer-specific BIOS modules (Dell, HP, Lenovo)
  3. Windows NIC WOL settings (CIM)

Behavior

  1. Checks/installs required PowerShell modules (NuGet, PSGallery)
  2. Detects system manufacturer
  3. Installs manufacturer-specific BIOS module if needed
  4. Configures BIOS WOL setting
  5. Enables WOL on all capable Windows NICs

Security Notes

  • No secrets in logs
  • Modifies BIOS settings (requires admin)
  • Installs PowerShell modules from PSGallery

Exit Codes

  • 0: Success
  • 1: Warning (rerun required after PowerShellGet update)
  • Other: Manufacturer not supported or error

Example Output

[ SYSTEM DETECTION ]
--------------------------------------------------------------
Manufacturer : Dell Inc.

[ BIOS CONFIGURATION ]
--------------------------------------------------------------
Installing DellBIOSProvider module...
Setting WakeOnLan to LANOnly...
BIOS WOL configured successfully

[ NIC CONFIGURATION ]
--------------------------------------------------------------
Enabling WOL for Intel(R) Ethernet...
NIC WOL enabled successfully

[ RESULT ]
--------------------------------------------------------------
Status : Success

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2025-11-29 v1.0.0 Initial Style A implementation

Links

Clone this wiki locally