Windows11(10)がスリープ、または休止して困る時の対処法【スリープうざい】

2023年1月27日

windowsでサーバーや遠隔操作などでスリープ・休止・ネットワークの接続が
解除されると困る時用の備忘録
しつこいスリープを撃退した記録

自分の場合なぜかお昼の12時ちょいすぎにネットワークだけスリープに入って困っていました。
ゲーミングノートPCなので設定が複雑な場合があります。
レジストリの変更や追加は必ずバックアップを取っておいた方がいい

ちなみにモダンスリープは外せないっぽい

基本設定:電源に関して

画面一番左下のwindowsボタンを左クリックして【電源】と入力します。

 

電源プランの編集より【詳細な電源設定の変更】を選択

いじる項目は赤いとこ

各項目の設定説明は省略
ノートPCの場合電源接続時とバッテリー利用時と2パターンあるので注意
特に最近のノートPCはバッテリーのフル充電を回避する設定があるので
時々バッテリーと電源利用を交互に使用します。

設定項目

・ハードディスクの電源を切る:0分(無効)
・ワイヤレスアダプターの設定>省電力モード>最大のパフォーマンス
・スリープ
・次の時間が経過後スリープする:なし
・ハイブリッドスリープ:なし
・次の時間が経過後休止状態にする:なし
・スリープ解除タイマーの許可:有効
・USB設定>USBのセレクティブサスペンドの設定>無効
・PCI Express>リンク状態の電源管理>オフ

ここからはわかる人のみ確認

スリープを引き起こすデバイスの特定

ここからは面倒くさい作業になりますが、イベントビューアでスリープになった時間を確認
スリープになる直前から解除までは大体イベントビューアーに記録が残っていないのでその前後のデバイスを確認します。
winbボタンをクリックして【イベントビューアー】と打てば出ます。

イベントビューアー>Windowsログ>システムより空白の時間と復帰直前のデータを見ます。
自分の場合は下記が電力消費をしてるのでwifiを切ったようです。
USB デバイス: VID: 0x13D3 PID: 0x3568 REV: 0x100
その次のログではKernel-powerでキーボードよりモダンスタンバイの解除を行ってます。

VID(ベンダーID)をGoogleで検索して
ある程度どのデバイスかを模索していきます。

検索をかけるとVID 13D3はMediatekが製造元っぽいので
該当しそうなものをデバイスマネージャーで個々デバイスを右クリック
詳細よりハードウェアIDを選択してエラーが起きている VIDとPIDを特定

これの電源の管理より、【電力の節約のために、コンピューターでこのデバイスの出電源をオフにできるようにする】のチェックを外します。

設定項目がない場合、レジストリの変更(注意:レジストリのバックアップは取っておくこと)

全て新規テキストに下記をコピペして
テキスト名を変更、拡張子をregにします。

USBセレクティブサスペンド

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226]
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,75,00,73,00,62,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,32,00,30,00,32,00,3b,00,55,00,73,00,62,00,50,00,6f,00,77,00,65,00,72,00,\
  53,00,65,00,6c,00,53,00,75,00,70,00,4e,00,61,00,6d,00,65,00,00,00
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,75,00,73,00,62,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,32,00,30,00,33,00,3b,00,55,00,73,00,62,00,50,00,6f,00,77,00,65,00,72,00,\
  53,00,65,00,6c,00,53,00,75,00,70,00,44,00,65,00,73,00,63,00,72,00,69,00,70,\
  00,74,00,69,00,6f,00,6e,00,00,00
"Attributes"=dword:00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\0]
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,75,00,73,00,62,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,32,00,30,00,36,00,3b,00,56,00,61,00,6c,00,75,00,65,00,4f,00,66,00,66,00,\
  4e,00,61,00,6d,00,65,00,00,00
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,75,00,73,00,62,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,32,00,30,00,37,00,3b,00,56,00,61,00,6c,00,75,00,65,00,4f,00,66,00,66,00,\
  44,00,65,00,73,00,63,00,00,00
"SettingValue"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\1]
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,75,00,73,00,62,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,32,00,30,00,34,00,3b,00,56,00,61,00,6c,00,75,00,65,00,4f,00,6e,00,4e,00,\
  61,00,6d,00,65,00,00,00
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,75,00,73,00,62,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,\
  00,32,00,30,00,35,00,3b,00,56,00,61,00,6c,00,75,00,65,00,4f,00,6e,00,44,00,\
  65,00,73,00,63,00,00,00
"SettingValue"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\DefaultPowerSchemeValues]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\DefaultPowerSchemeValues\a1841308-3541-4fab-bc81-f71556f20b4a]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

 

Wifiの省電力

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,30,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,30,00,39,00,39,00,00,00
"Attributes"=dword:00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\0]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,32,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,31,00,00,00
"SettingValue"=hex:4f,16,ab,c1,4f,83,3d,46,85,44,a4,0e,93,ab,54,72

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\1]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,34,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,33,00,00,00
"SettingValue"=hex:cb,bc,7c,78,4b,cd,76,47,8b,e5,5f,8a,e4,72,6f,2b

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\2]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,36,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,35,00,00,00
"SettingValue"=hex:12,e4,28,67,d1,40,b0,4a,8d,15,f3,c5,6f,30,3e,b5

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\3]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,38,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6c,00,61,00,6e,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\
  00,2d,00,34,00,31,00,30,00,37,00,00,00
"SettingValue"=hex:0f,dc,12,e0,97,83,b5,46,a0,60,0d,e8,4f,96,38,8e

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\DefaultPowerSchemeValues]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e]
"ACSettingIndex"=dword:00000000
"DCSettingIndex"=dword:00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c]
"ACSettingIndex"=dword:00000000
"DCSettingIndex"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a\DefaultPowerSchemeValues\a1841308-3541-4fab-bc81-f71556f20b4a]
"ACSettingIndex"=dword:00000000
"DCSettingIndex"=dword:00000003

 

スタンバイの禁止

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab]
"Attributes"=dword:00000000
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,32,00,31,00,2c,00,41,00,6c,00,6c,00,6f,00,77,00,20,00,\
  57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,74,00,6f,00,20,00,75,00,73,\
  00,65,00,20,00,74,00,68,00,65,00,20,00,73,00,74,00,61,00,6e,00,64,00,62,00,\
  79,00,20,00,73,00,74,00,61,00,74,00,65,00,73,00,20,00,77,00,68,00,65,00,6e,\
  00,20,00,73,00,6c,00,65,00,65,00,70,00,69,00,6e,00,67,00,20,00,79,00,6f,00,\
  75,00,72,00,20,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,2e,00,00,\
  00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,32,00,32,00,2c,00,41,00,6c,00,6c,00,6f,00,77,00,20,00,\
  53,00,74,00,61,00,6e,00,64,00,62,00,79,00,20,00,53,00,74,00,61,00,74,00,65,\
  00,73,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab\0]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,36,00,2c,00,4f,00,66,00,66,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,37,00,2c,00,4f,00,66,00,66,00,00,00
"SettingValue"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab\1]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,34,00,2c,00,4f,00,6e,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,35,00,2c,00,4f,00,6e,00,00,00
"SettingValue"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab\DefaultPowerSchemeValues]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\abfc2519-3608-4c2a-94ea-171b0ed546ab\DefaultPowerSchemeValues\a1841308-3541-4fab-bc81-f71556f20b4a]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

ネットワーク自動スリープ禁止

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d]
"Attributes"=dword:00000000
"Description"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6b,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,31,00,30,00,33,00,2c,00,41,00,6c,00,6c,00,6f,00,77,00,20,00,79,00,6f,00,\
  75,00,72,00,20,00,6d,00,61,00,63,00,68,00,69,00,6e,00,65,00,20,00,74,00,6f,\
  00,20,00,67,00,6f,00,20,00,74,00,6f,00,20,00,73,00,6c,00,65,00,65,00,70,00,\
  20,00,77,00,68,00,65,00,6e,00,20,00,66,00,69,00,6c,00,65,00,73,00,20,00,6f,\
  00,70,00,65,00,6e,00,65,00,64,00,20,00,72,00,65,00,6d,00,6f,00,74,00,65,00,\
  6c,00,79,00,20,00,68,00,61,00,76,00,65,00,20,00,6e,00,6f,00,74,00,20,00,62,\
  00,65,00,65,00,6e,00,20,00,77,00,72,00,69,00,74,00,74,00,65,00,6e,00,20,00,\
  74,00,6f,00,2e,00,00,00
"FriendlyName"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,77,00,6b,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
  00,31,00,30,00,34,00,2c,00,41,00,6c,00,6c,00,6f,00,77,00,20,00,73,00,6c,00,\
  65,00,65,00,70,00,20,00,77,00,69,00,74,00,68,00,20,00,72,00,65,00,6d,00,6f,\
  00,74,00,65,00,20,00,6f,00,70,00,65,00,6e,00,73,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d\0]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,36,00,2c,00,44,00,69,00,73,00,61,00,62,00,6c,00,\
  65,00,2e,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,37,00,2c,00,44,00,69,00,73,00,61,00,62,00,6c,00,\
  65,00,00,00
"SettingValue"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d\1]
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,34,00,2c,00,45,00,6e,00,61,00,62,00,6c,00,65,00,\
  2e,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,31,00,35,00,2c,00,45,00,6e,00,61,00,62,00,6c,00,65,00,\
  00,00
"SettingValue"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d\DefaultPowerSchemeValues]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c]
"ACSettingIndex"=dword:00000000
"DCSettingIndex"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d\DefaultPowerSchemeValues\a1841308-3541-4fab-bc81-f71556f20b4a]
"ACSettingIndex"=dword:00000001
"DCSettingIndex"=dword:00000001

 

無人スリープ

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0]
"Attributes"=dword:00000002
"Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,32,00,38,00,2c,00,49,00,64,00,6c,00,65,00,20,00,74,00,\
  69,00,6d,00,65,00,6f,00,75,00,74,00,20,00,62,00,65,00,66,00,6f,00,72,00,65,\
  00,20,00,74,00,68,00,65,00,20,00,73,00,79,00,73,00,74,00,65,00,6d,00,20,00,\
  72,00,65,00,74,00,75,00,72,00,6e,00,73,00,20,00,74,00,6f,00,20,00,61,00,20,\
  00,6c,00,6f,00,77,00,20,00,70,00,6f,00,77,00,65,00,72,00,20,00,73,00,6c,00,\
  65,00,65,00,70,00,20,00,73,00,74,00,61,00,74,00,65,00,20,00,61,00,66,00,74,\
  00,65,00,72,00,20,00,77,00,61,00,6b,00,69,00,6e,00,67,00,20,00,75,00,6e,00,\
  61,00,74,00,74,00,65,00,6e,00,64,00,65,00,64,00,2e,00,00,00
"FriendlyName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,31,00,32,00,39,00,2c,00,53,00,79,00,73,00,74,00,65,00,6d,00,\
  20,00,75,00,6e,00,61,00,74,00,74,00,65,00,6e,00,64,00,65,00,64,00,20,00,73,\
  00,6c,00,65,00,65,00,70,00,20,00,74,00,69,00,6d,00,65,00,6f,00,75,00,74,00,\
  00,00
"ValueIncrement"=dword:00000001
"ValueMax"=dword:ffffffff
"ValueMin"=dword:00000000
"ValueUnits"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,70,00,6f,00,77,00,72,00,70,00,72,00,6f,00,66,00,2e,00,64,00,6c,00,6c,\
  00,2c,00,2d,00,38,00,30,00,2c,00,53,00,65,00,63,00,6f,00,6e,00,64,00,73,00,\
  00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e]
"ACSettingIndex"=dword:00000078
"DCSettingIndex"=dword:00000078

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c]
"ACSettingIndex"=dword:00000078
"DCSettingIndex"=dword:00000078

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238c9fa8-0aad-41ed-83f4-97be242c8f20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\a1841308-3541-4fab-bc81-f71556f20b4a]
"ACSettingIndex"=dword:00000078
"DCSettingIndex"=dword:00000078

ハイバネーションをOFFにしとく

Winボタンを押してcmdを管理者で開き下記を入力でエンター
直したい場合はoffのとこをonに変更

powercfg.exe /hibernate off

 

ポリシーで設定

ポリシーの追加、proの場合ははじめから入っているので入っていない人向け

新規テキストに下記をコピペして
テキスト名を変更、拡張子をbatにします。

--------------

@echo off

pushd "%~dp0"

 

dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt

dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt

 

for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

pause

--------------

Win+Rでファイル名の実行からgpedit.mscでポリシーを指定します。

いじるとこ
コンピューターの構成>管理用テンプレート>システム>電源の設定>スリープの設定
スリープに関するもの全て無効もしくは有効に変更、自分の場合はこんな感じ

 

スポンサーリンク