Doesn’t work Invalid parameter--. I have zero clue where it gets the --. But the issue would be new devices or other ports. I did this manually once, needed to unplug my PC and needed to do this once again. At least there seems to be an option doing this in bulk but it’s not optimal.
Here’s a one liner that disables wake on all devices in your PC.
powershell -Command “powercfg /devicequery wake_armed | ForEach{ powercfg /devicedisablewake $_ }”
Doesn’t work
Invalid parameter --
. I have zero clue where it gets the--
. But the issue would be new devices or other ports. I did this manually once, needed to unplug my PC and needed to do this once again. At least there seems to be an option doing this in bulk but it’s not optimal.