Set Wake-from-Standby by Magic Packet Settings - Windows XP/Vista typo

(imported topic written by rdamours91)

Looks like “Device is capable of bring programmed to wake the system.” has a typo in it.

// check if there exists a network card that supports wake from standby. Returns fail if one doesn’t exist

continue if {exists substrings separated by “===================” whose(it contains “Device is capable of bring programmed to wake the system.” AND it contains “{4D36E972-E325-11CE-BFC1-08002BE10318}}”) of concatenations “|” of lines of files “devices.txt”}

//checks for devices that can wake, and are of the “Network Adapter” hardware class

appendfile {concatenation of (“powercfg.exe /deviceenablewake %22” & it & “%22%0d%0a”) of preceding texts of firsts “|” of substrings after "DeviceName: " of substrings separated by “===================” whose(it contains “Device is capable of bring programmed to wake the system.” AND it contains “Device is not currently armed to wake the system.” AND it contains “{4D36E972-E325-11CE-BFC1-08002BE10318}}”) of concatenations “|” of lines of files “devices.txt”}

(imported comment written by Lee Wei)

Hi Rich,

Thanks for the catch. Turns out it is not a typo, because that is how Windows XP powercfg.exe output the info.

However, we do have a bug in that on Vista, Microsoft fixed the typo, and hence the statements above will no longer work.

Further more, on Vista, the class ids are output in lowercase.

We have a bug filed to fix this. Thanks.

Lee Wei

(imported comment written by rdamours91)

I suspected as much. I trust your engineering more than I trust Microsofts :slight_smile: