彻底禁止Windows在休眠时自动更新

0) Stop and disable the service:
    * Windows Update
    * Update Orchestrator Service

1) Edit group policy to disable:

Tool: PolicyPlus.exe

psexec -i -d -s C:\temp\Downloads\PolicyPlus.exe
    * Configure Automatic Updates
    * Enabling Windows Update Power Management to automatically wake up the system to install scheduled updates

Reference:
https://www.yudelei.com/index.php/295.html

2) Disable scheduled tasks:

psexec -i -d -s mmc taskschd.msc

Microsoft -> Windows -> UpdateOrchestrator 
Microsoft -> Windows -> Windows Update

Reference:
https://www.tenforums.com/general-support/98784-no-permission-disable-task-task-scheduler.html

3) Remove StartMenuExperienceHost from powercfg /waketimers

StartMenuExperienceHost_cw5n1h2txyewy is randomly starting my computer. And the solution was super easy. Open Windows Start menu and remove any automatically generated icons (weather, photos thumbnails, games etc.). 

Kill StartMenuExperienceHost from task manager -> details, it will restart automatically.
Then this job disappeared from powercfg /waketimers.

Reference: 
https://superuser.com/questions/1513150/why-does-startmenuexperiencehost-want-to-wake-my-computer

4) Forbid timers to wake up from sleep

Battery:
powercfg /SETDCVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0​

Plug-in:
powercfg /SETACVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0​

Verification: 
powercfg /devicequery wake_armed
HID-compliant mouse
HID Keyboard Device
HID-compliant mouse (001)
HID Keyboard Device (001)

5) BIOS
Power Management Setup -> PME Event Wake Up

你可能感兴趣的:(windows)