Site Tools


windows:sleep
prevent windows from wake up

cmd

  • powercfg -lastwake who wakes me up?
  • powercfg -devicequery wake_armed who could wake me up?

power shell

  • Get-ScheduledTask | where {$_.settings.waketorun} find all scheduled tasks
  • Get-ScheduledTask -TaskPath "\Microsoft\Windows\.NET Framework\" | Disable-ScheduledTask Disable some

Disable vboxsvc wake up timer

Power Options > Advanced settings > Sleep > Allow wake timers ⇒ Disable

look: https://forums.virtualbox.org/viewtopic.php?f=6&t=69723

Disable Microsoft\Windows\UpdateOrchestrator\Reboot

I was eventually able to disable the Reboot task. Firstly, I tried the following line in cmd:

SCHTASKS /Change /TN "Microsoft\Windows\UpdateOrchestrator\Reboot" /DISABLE

It did not work, and the error message said I do not have sufficient privileges to modify the task (even though I work on a Windows admin account). However, thanks to this message, I was able to find information about NSudo program. Per the already linked hint, I used it in a TrustedInstaller mode to start cmd and - lo and behold - SCHTASKS now worked perfectly, allowing me to disable the Reboot task. Windows is user friendly, they said.

credit: https://superuser.com/a/1269146

Use ''task scheduler'' to disable NT TASK\Microsoft\Windows\UpdateOrchestrator\Reboot

  • gpedit.msc
  • Computer Configuration / Administrative Templates / Windows Components / Windows Update
  • Double click "Enabling Windows Update Power Management to automatically wake up the system to install scheduled updates" and set it to "Disabled".
    • 中文系统在第四项:启用 Windows 更新电源管理以自动唤醒系统来安装计划的更新
windows/sleep.txt · Last modified: 2020-04-19 (external edit)