Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
windows:sleep [2018-11-04] dcaiwindows:sleep [2020-04-19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +== prevent windows from wake up ==
  
 +
 +http://www.techsupportalert.com/content/quick-ways-open-windows-vista7-command-line-administrator-elevated-privileges.htm
 +
 +
 +=== 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 [[https://www.reddit.com/r/Windows10/comments/48rg7x/is_there_any_way_to_stop_updateorchestrator_for/d0m1869/|this]] message, I was able to find information about [[https://github.com/M2Team/NSudo/releases|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 更新电源管理以自动唤醒系统来安装计划的更新