Skip to content

WOL

Featured Replies

I am using the WOL Proxy in our environment. When the machines are completely powered off the WOL proxy service wakes them with no problem and they run updates and TS's with no problem. However, if they are in sleep mode the WOL proxy service is not able to wake them. I have updated the BIOS on my PC's and enabled WOL and disabled the advanced sleep states like S4. I cannot figure out why the machines will wake when completely powered off but wont wake from Sleep. We are running Windows 7 enterprise 32x. Thanks

Check device manager and make sure the NIC is allowed to wake the machine. Go to the properties of the network card and Power Management tab.

If this is the issue you could manage those settings with a Configuration Item. Here is the Detection Script:

$nics = Get-WmiObject Win32_NetworkAdapter -filter "AdapterTypeID = '0' `
AND PhysicalAdapter = 'true' `
AND NOT Description LIKE '%Centrino%' `
AND NOT Description LIKE '%wireless%' `
AND NOT Description LIKE '%WiFi%' `
AND NOT Description LIKE '%Virtual%' `
AND NOT Description LIKE '%Bluetooth%'"


foreach ($nic in $nics)
{
$nicName = $nic.Name

$nicPower = Get-WmiObject MSPower_DeviceEnable -Namespace root\wmi | where {$_.instancename -match [regex]::escape($nic.PNPDeviceID) }

$nicPowerWake = Get-WmiObject MSPower_DeviceWakeEnable -Namespace root\wmi | where {$_.instancename -match [regex]::escape($nic.PNPDeviceID) }

}


if ($nicpower.Enable -eq 'True' -and $nicpowerwake.Enable -eq 'True')
{
Write-Host "Detected"
}

 

 

And remediation:

 

$nics = Get-WmiObject Win32_NetworkAdapter -filter "AdapterTypeID = '0' `
AND PhysicalAdapter = 'true' `
AND NOT Description LIKE '%Centrino%' `
AND NOT Description LIKE '%wireless%' `
AND NOT Description LIKE '%WiFi%' `
AND NOT Description LIKE '%Virtual%' `
AND NOT Description LIKE '%Bluetooth%'"

foreach ($nic in $nics)
{

$nicName = $nic.Name

$nicPower = Get-WmiObject MSPower_DeviceEnable -Namespace root\wmi | where {$_.instancename -match [regex]::escape($nic.PNPDeviceID) }
$nicPower.Enable = $True
$nicPower.psbase.Put()

$nicPowerWake = Get-WmiObject MSPower_DeviceWakeEnable -Namespace root\wmi | where {$_.instancename -match [regex]::escape($nic.PNPDeviceID) }
$nicPowerWake.Enable = $True
$nicPowerWake.psbase.Put()

$nicMagicPacket = Get-WmiObject MSNdis_DeviceWakeOnMagicPacketOnly -Namespace root\wmi | where {$_.instancename -match [regex]::escape($nic.PNPDeviceID) }
$nicMagicPacket.EnableWakeOnMagicPacketOnly = $False
$nicMagicPacket.psbase.Put()
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.