0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

全てのデバイスからのスリープ解除を無効にする方法

Posted at

解決したいこと

https://qiita.com/__xxWaKoUxx__/items/1adc60dd104c376d9864
こちらの記事参考

元記事はキーボードとマウスを対象にしているが、すべてのデバイスを対象とした

修正後コード

@echo off
setlocal

echo ==== Wake可能なデバイスを無効化中 ====

for /f "usebackq delims=" %%A in (`powercfg -devicequery wake_armed`) do (
    echo 無効化: %%A
    powercfg /devicedisablewake "%%A"
)

echo ==== 完了しました ====
endlocal
pause

あとは元記事と同様に設定する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?