Disable Wake for Network Access on macOS endpoints to prevent remote activation over Wi-Fi
This Automox Worklet™ disables Wake for Network Access (WoL) on macOS endpoints by modifying the system power settings. The Worklet uses the pmset command to set the womp (wake on magic packet) parameter to 0, preventing endpoints from responding to network wake requests.
When an endpoint has Wake for Network Access enabled, other endpoints on the same network can send magic packets to remotely wake it from sleep mode. This feature simplifies IT operations in some scenarios but introduces security risks by providing an additional attack surface.
The Worklet completely eliminates this remote activation capability, verifying endpoints remain in their intended power states without external network interference.
Wake for Network Access creates a security vulnerability by allowing unauthorized users to remotely activate endpoints over Wi-Fi. Attackers on the same network, or attackers who have compromised network infrastructure, can send specially crafted packets to wake sleeping endpoints and potentially gain access to system resources.
Disabling this feature aligns with security best practices and helps you meet compliance requirements from frameworks like CIS Benchmarks and NIST 800-53. You maintain control over endpoint power states while reducing the number of potential attack vectors.
For organizations managing fleet security across macOS endpoints, automating this configuration through The Worklet maintains consistent security posture without requiring manual intervention on each endpoint.
Evaluation phase: The Worklet queries the current power settings using pmset -g and checks the womp parameter value. If the value is 1 (enabled), the evaluation fails and the Worklet proceeds to remediation. If the value is 0 (disabled), no remediation is needed.
Remediation phase: The Worklet executes pmset -a womp 0 to disable Wake for Network Access across all power profiles on the endpoint. This change persists across sleep and wake cycles.
macOS 10.13 (High Sierra) or later
Root or administrator privileges to modify system power settings
Access to the pmset command-line utility
Wireless network adapter present on the endpoint
No conflicting Mobile endpoint Management (MDM) policies that override power settings
After the Worklet completes successfully, endpoints will no longer respond to Wake for Network Access requests. Even if another endpoint on the network sends a magic packet or similar wake trigger, the endpoint remains in its current power state (sleep, hibernate, or off).
Users can verify the change by opening System Preferences and navigating to Energy Saver. The Wake for network access checkbox will be unchecked. You can also confirm the setting using the command pmset -g and verifying that womp shows 0. This configuration prevents all remote activation methods while preserving normal power management and sleep scheduling.
Run this Worklet on a pilot macOS endpoint and review evaluation output for disable wake for network access.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as exit, else.
Validate remediation effects from script operations such as pmset, else, exit, then rerun evaluation for compliance.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy