wol_enable.ps1 - limehawk/rmm-scripts GitHub Wiki
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
- System manufacturer detection (CIM)
- Manufacturer-specific BIOS modules (Dell, HP, Lenovo)
- Windows NIC WOL settings (CIM)
Behavior
- Checks/installs required PowerShell modules (NuGet, PSGallery)
- Detects system manufacturer
- Installs manufacturer-specific BIOS module if needed
- Configures BIOS WOL setting
- 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
- View Script Source
- Scripts - Back to script index