Setting Windows 8 to disable USB-wake by default for all devices - powercfg pipes?

Solution 1:

Try this in a batch file (you'll have to run it elevated to get it to work):

For /F "tokens=*" %%A in ('powercfg -devicequery wake_armed') do powercfg -devicedisablewake "%%A"

More info on batch "For"