Skip to main content

Why Wi-Fi Adapters Sleep Through Support Calls

Power-state telemetry detects sleeping Wi-Fi adapters and applies targeted Intune remediation before intermittent drops reach the service desk.

KBY Technologies11 min readTier L225 min
Why Wi-Fi Adapters Sleep Through Support Calls

Advertising disclosure: this article includes partner links. KBY may earn a commission if you sign up or buy through one, at no extra cost to you. How we make money.

Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.

Intermittent Wi-Fi drops on Intune-managed laptops can come from an adapter that Windows is allowed to power down, not from the network at all. By the time a technician looks, the adapter has reconnected and the evidence has gone, so standard network checks find nothing. The fix belongs on the device: a Remediations script that reads the adapter’s power-management setting and switches the power saving off before users feel it.

#Current Method: Chasing Ghosts in the Wi-Fi Logs

Most service desks learn about a sleeping Wi-Fi adapter only after a user reports a dropped session, a stalled Teams call, or an intermittent ‘no internet’ banner.

The ticket lands with almost nothing to diagnose from: the adapter has usually re-associated by the time anyone looks, and when the cause is Windows moving an idle network adapter into a low-power state, the symptom the user reports carries no obvious trace of it.

Support technicians are left reconstructing the incident from the WLAN AutoConfig operational log, timestamps and vague recollections of when the laptop was last touched.

This reactive model has three structural weaknesses. First, the trigger condition (Windows deciding the adapter is idle and can be powered down) is invisible until after the disconnect has already happened, so the evidence trail is always retrospective. Second, log correlation is manual and inconsistent between technicians, so similar incidents get triaged differently depending on who picks up the ticket.

Third, because the cause sits in the adapter’s power-management settings rather than in a network fault, standard network diagnostics (ping, DNS checks, driver reinstalls) rarely resolve anything, and the ticket is frequently closed as ‘intermittent, self-resolved’ without a fix being applied at all.

The organisational assumption behind the current method is that Wi-Fi reliability is primarily a network-layer problem. On laptops managed through Microsoft Intune that assumption can be wrong: the adapter itself is healthy, but its power-management settings allow Windows to suspend it, and no loop exists to catch that state before the user notices.

#Improved Workflow: Catching the Drop Before the User Notices

The proactive alternative treats adapter power management as a device state to read and correct. Microsoft Intune Remediations (the feature formerly called Proactive Remediations) runs a detection script on a schedule and runs the paired remediation script only when the detection script exits with code 1. Here the detection script reads the Wi-Fi adapter’s power-management settings with Get-NetAdapterPowerManagement.

When Windows is allowed to suspend the adapter while it is idle, the remediation script turns that feature off and records what it changed.

Two things decide whether this playbook fits. First, licensing: Remediations requires the users of the devices to hold Windows Enterprise E3 or E5 (included in Microsoft 365 F3, E3 or E5), Windows Education A3 or A5 (included in Microsoft 365 A3 or A5) or Windows Virtual Desktop Access (VDA) per user.

The devices must be Microsoft Entra joined or Microsoft Entra hybrid joined, and either enrolled in Intune and running Windows Enterprise, Professional or Education, or co-managed. Second, what a script can change.

The Device Manager checkbox “Allow the computer to turn off this device to save power” is reported to PowerShell as AllowComputerToTurnOffDevice, but Microsoft documents that property as read-only, and none of the NetAdapter power-management cmdlets has a parameter that sets it.

The cmdlets can change individual power features, including NDIS selective suspend, which lets Windows move an idle network adapter to a low-power state. That is the setting this playbook manages.

Detection runs first so that devices where power saving is intentional are not reset blindly. Remediation changes one feature rather than reapplying a power plan, because broad changes are harder to reason about and roll back. The local log records every change and the value it replaced, which is what makes the fix measurable and reversible.

The schedule sets how quickly this works. Each assignment runs once, hourly (every n hours, fewer than 24) or daily, and Microsoft recommends less frequent schedules for scripts that are not urgent. The workflow shortens the gap between a misconfigured adapter and its correction to the schedule you choose, not to zero.

#Implementation

#
Step 1: Reading the Wi-Fi Adapter’s Power Settings

The detection script selects physical adapters whose NdisPhysicalMedium is 9 (Native 802.11) and loops over them, so a device with two Wi-Fi adapters is handled. For each it reads AllowComputerToTurnOffDevice and SelectiveSuspend. Microsoft documents that when AllowComputerToTurnOffDevice is anything other than Enabled, the remaining power-management values are undefined, so the script only judges SelectiveSuspend when the first value is Enabled.

1function Test-Enabled($value) { "$value" -eq 'Enabled' -or "$value" -eq '2' }
2
3$issues = @()
4$adapters = @(Get-NetAdapter -Physical | Where-Object { $_.NdisPhysicalMedium -eq 9 })
5foreach ($adapter in $adapters) {
6    $pm = Get-NetAdapterPowerManagement -Name $adapter.Name
7    if ((Test-Enabled $pm.AllowComputerToTurnOffDevice) -and (Test-Enabled $pm.SelectiveSuspend)) {
8        $issues += "$($adapter.Name): SelectiveSuspend enabled"
9    }
10}
11if ($issues.Count -gt 0) {
12    Write-Output ('NonCompliant: ' + ($issues -join '; '))
13    exit 1
14}
15Write-Output 'Compliant'
16exit 0

Test-Enabled accepts the name Enabled or its documented value, 2. Upload the script with Run this script using the logged-on credentials set to No, so it runs as SYSTEM: Get-NetAdapterPowerManagement needs an elevated session. Remediations keeps at most 2,048 characters of output. On each hardware model, confirm the result matches the adapter’s Advanced tab in Device Manager, where a driver that supports selective suspend shows the setting.

#
Step 2: Turning Off Selective Suspend Without Dropping the Connection

The remediation script logs the adapter’s current values before changing anything, then disables selective suspend with Set-NetAdapterPowerManagement. The -NoRestart switch matters. Without it the cmdlet restarts the network adapter, which on a Wi-Fi laptop drops the connection mid-session, the very symptom this playbook is meant to remove.

With it, the change may not apply until the adapter next restarts: Microsoft notes that many advanced properties need an adapter restart before a new setting takes effect. Do not add a restart command: Microsoft says to keep reboot commands out of remediation scripts.

1function Test-Enabled($value) { "$value" -eq 'Enabled' -or "$value" -eq '2' }
2
3$logDir = 'C:\ProgramData\OpsPlaybook'
4New-Item -ItemType Directory -Force -Path $logDir | Out-Null
5$log = Join-Path $logDir 'wifi-remediation.log'
6
7try {
8    $adapters = @(Get-NetAdapter -Physical | Where-Object { $_.NdisPhysicalMedium -eq 9 })
9    foreach ($adapter in $adapters) {
10        $pm = Get-NetAdapterPowerManagement -Name $adapter.Name -ErrorAction Stop
11        "$(Get-Date -Format o) Before $($adapter.Name): AllowComputerToTurnOffDevice=$($pm.AllowComputerToTurnOffDevice) SelectiveSuspend=$($pm.SelectiveSuspend)" | Out-File -Append $log
12        if ((Test-Enabled $pm.AllowComputerToTurnOffDevice) -and (Test-Enabled $pm.SelectiveSuspend)) {
13            Set-NetAdapterPowerManagement -Name $adapter.Name -SelectiveSuspend Disabled -NoRestart -ErrorAction Stop
14            "$(Get-Date -Format o) Set SelectiveSuspend=Disabled on $($adapter.Name), adapter not restarted" | Out-File -Append $log
15        }
16    }
17    Write-Output 'Remediated'
18    exit 0
19}
20catch {
21    "$(Get-Date -Format o) Failed: $($_.Exception.Message)" | Out-File -Append $log
22    Write-Output "Failed: $($_.Exception.Message)"
23    exit 1
24}

This script does not clear “Allow the computer to turn off this device to save power”. If a model needs that checkbox cleared too, do it by hand in the adapter’s Power Management tab in Device Manager and record it. Where the tab is missing, that can be by design: Microsoft’s article on Always On/Always Connected platforms (written for Windows 8) says Windows must manage the wireless adapter’s power state itself there, so the tab is not offered.

#
Step 3: Collecting the Evidence Without Visiting the Device

Under Devices then Manage devices then Scripts and remediations, the script package’s overview shows detection and remediation status, Device status breaks that down per device, and Export saves the script output as a .csv file.

The report lags the device: the client fetches Remediations policy every 8 hours, and a recurring script reports only when its result changes during the first six days of a seven-day cycle, then reports on the seventh day regardless.

For trend analysis, collect the local log from Step 2 into a central store through an endpoint logging pipeline your organisation has already approved.

#
Step 4: Validation Loop and Ticket Suppression Logic

Before this pair is assigned broadly, run it against a small pilot ring and compare its results with a manual check of the same devices. The Run remediation (preview) device action runs a script package on one Windows device on demand, which is useful for testing without waiting for the schedule.

Ticket suppression, meaning automatically annotating or closing related tickets when remediation succeeds, should only be introduced once the detection and remediation pair has a demonstrated low false-positive rate in the pilot ring; suppressing tickets on an unproven detection script risks masking genuine hardware faults.

#Rules for the Pilot

  • Change only selective suspend; do not reapply an entire power plan or driver configuration.
  • Always pass -NoRestart in scheduled runs, and keep restart commands out of both scripts.
  • Assign the script package to a pilot Microsoft Entra ID group first, and expand only after a defined observation period with clean results.
  • Run both scripts as SYSTEM, keep their scope to the local device, and keep passwords and other sensitive information out of them.
  • Before the first deployment, have an Intune Service Administrator confirm the licensing requirements, which Microsoft requires before Remediations is used for the first time.
  • Treat any change to laptop power management as a trade-off against battery life, and disclose it to the pilot group.

#Validation

  • Confirm the detection script exits with 1 on a test device whose Wi-Fi adapter has selective suspend enabled, exits with 0 on one where it is disabled, and does not flag an adapter that reports Disabled or Unsupported for AllowComputerToTurnOffDevice.
  • After the remediation has run and the device has restarted, run Get-NetAdapterPowerManagement -Name '<adapter name>' | Format-List -Property * in an elevated session and confirm SelectiveSuspend no longer reads Enabled (a driver that stops advertising the capability may report it as Unsupported rather than Disabled). Check again after the next Wi-Fi driver update.
  • Cross-check the Remediations device status and exported output against the local remediation log over at least one full seven-day reporting cycle.
  • Compare service desk Wi-Fi drop ticket volume for the pilot group against a comparable control group over the same period, not against historical volume alone.

#Common Mistakes

  • Deploying remediation to all devices before the pilot ring has produced a stable false-positive rate.
  • Writing Set-NetAdapterPowerManagement -AllowComputerToTurnOffDevice into a script. The cmdlet has no such parameter, and the property is read-only.
  • Leaving out -NoRestart, so the scheduled fix itself drops the Wi-Fi connection.
  • Assuming every Wi-Fi driver exposes selective suspend. An adapter that reports Unsupported is outside what this playbook can change.
  • Suppressing service desk tickets automatically before remediation success has been independently validated.
  • Treating a successful remediation report as proof that the underlying disconnect symptom is resolved, without checking the WLAN-AutoConfig operational log for continued connectivity failures on the same device.

#Recovery

  1. Remove the script package’s assignment from the affected Microsoft Entra ID group in Intune to stop further runs.
  2. On each affected device, read the “Before” lines in C:\ProgramData\OpsPlaybook\wifi-remediation.log. Where the log shows SelectiveSuspend=Enabled before the change, restore it in an elevated session with Set-NetAdapterPowerManagement -Name '<adapter name>' -SelectiveSuspend Enabled -NoRestart, or deploy that command as a one-off script. Leave adapters the log shows as already Disabled alone.
  3. Review the local remediation log and the Remediations device status together to identify which devices were changed and when.
  4. Reopen or flag for review any service desk tickets that were auto-suppressed during the affected period.
  5. After a restart, confirm on a sample of reverted devices that Get-NetAdapterPowerManagement reports the values recorded in the log before re-expanding the pilot ring.

Following along? Tap a step’s number to tick it off.

#How to Tell It Worked

Establish a baseline before deployment: the count of Wi-Fi-related drop tickets per week for the pilot population over at least two prior weeks.

The success signal is a sustained reduction in that ticket count for the pilot group relative to a comparable control group, measured over a period long enough to smooth out normal weekly variation (a minimum of four weeks is a reasonable starting point, subject to local ticket volume).

Check the ticket category for Wi-Fi drops against the Remediations device status, so a fall in tickets lines up with devices where the issue was fixed.

Review the comparison at a fixed cadence (for example, monthly) and use a defined threshold, such as a sustained percentage reduction in tickets against the control group, as the decision point for expanding beyond the pilot ring. Any deflection percentage or return-on-investment figure should come from your own baseline and control-group comparison.

#Checklist

  • Remediations licensing and prerequisites confirmed.
  • Detection tested against adapters with selective suspend enabled, disabled and unsupported.
  • Remediation changes only selective suspend, with -NoRestart, logging values first; both scripts run as SYSTEM.
  • Pilot Microsoft Entra ID group defined.
  • Logging path from the local remediation log to a central store confirmed and owned by an existing, approved logging pipeline.
  • Ticket suppression logic withheld until the false-positive rate from the pilot ring is known and acceptable.
  • Rollback procedure tested on at least one pilot device before wider assignment.
  • Baseline ticket count and control group defined before expanding beyond the pilot ring.

About this page

Credited to

Dates

Published

Sources

This page lists no external sources.

Corrections

  • : Corrected during a review of published articles. Details
  • : Withdrawn. Details

Found this useful? Follow KBY for more like it.

Reader Interaction

Comments

Add a thoughtful note on Why Wi-Fi Adapters Sleep Through Support Calls. Comments are checked for spam and held for moderation before appearing.

Loading comments...

More from KBY that goes with this article.

Discover more

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Operate smarter, with fewer recurring tickets.

Receive new operational playbooks, incident-prevention guidance, automation scripts and recovery runbooks.