Jump to content


Recommended Posts

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

Share this post


Link to post
Share on other sites

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()
}

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.