• Trollception@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 days ago

    Here’s a one liner that disables wake on all devices in your PC.

    powershell -Command “powercfg /devicequery wake_armed | ForEach{ powercfg /devicedisablewake $_ }”

    • ZeldaFreak@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      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.