Empêcher définitivement les minuteries de réveil de réveiller un bureau Windows 10

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Empêcher définitivement les minuteries de réveil de réveiller un bureau Windows 10

Message par ForumBot »

Comment stop a Windows 10 Desktop waking up from the sleeping/hibernated power state without user intervention?

For lots of users this won't be an issue but, if you sleep in the same room as your PC, then having your machine wake up at 3:30AM to download updates is irritating.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Empêcher définitivement les minuteries de réveil de réveiller un bureau Windows 10

Message par ForumBot »

## Résumé

**April 2022: J'ai made a new PowerShell script that will disable Windows' tâche planifiées to wake a device automatically. Use it alongside the other parts of this guide. Download it at:**
[https://github.com/seagull/disable-scheduledWaking](19)

There are un certain nombre de things that can affect this. I'm aware there are posts all over this site detailing various different ways to approach the issue; this post aims to consolidate them and add my own insight into the issue as someone affected by it themselves.

The fix outlined in Step 2 can also be used to stop Windows 10 from rebooting the machine after installing Windows Updates.

This fix works for the Fall Update (1709) aussi. Vous devrez disable the 'Reboot' task again and re-configure the security permissions, though, because the update process replaces it.

## Étape 1 : Disable minuterie de réveils for all profil d'alimentations

Lazy tech-bloggers would have you believe this is the end of your search. While it's true that this step will eliminate a few errant shutdowns, there are un certain nombre de settings and configurations, particularly in Windows 10, that fail to respect this setting regardless of user intervention. Allez dans the Panneau de configuration → Options d'alimentation. À partir de là, pick whatever profil d'alimentation is first on the list and disable 'Wake timers'. Work through all profiles.

Thanks to StackExchange user [olee22](https://superuser.com/users/199219/olee22) for the image.

On Windows 10, it is strongly recommended you fix this setting **for all profil d'alimentations**, not just the one you have chosen to use. Various Windows faculties will use different profiles; this improves your chances of not being woken up.

## Étape 2 : Disable the unruly `reboot` tâche planifiée

Windows 10's UpdateOrchestrator tâche planifiée folder contains a task called "reboot". This task will wake your computer up to install updates regardless of whether or not any are available. Simply removing its permission to wake the computer is not sufficient; Windows will just edit it to give itself permission again after you leave the Planificateur de tâches.

From your Panneau de configuration, enter Outils d'administration, then view your Planificateur de tâches.

This is the task you want - under Planificateur de tâches Library → Microsoft → Windows → UpdateOrchestrator. The most important things you want to do are:

À partir de là, vous devrez alter the permissions for the task so that Windows cannot molest it. The task is located in `C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator`. It's called `Reboot` without a extension de fichier. Faites un clic droit sur it, enter properties and [make yourself the owner](https://superuser.com/questions/60700/how-do-i-get-permissions-to-delete-files-on-windows-7). Finally, configure it so that the following is shown:

Here the file is shown with read-only permissions for SYSTEM. Make it so that no account has write access, not even your own (vous pouvez always change permissions later si vous avez besoin to). Please also ensure you disable any inherited permissions for the file from the Advanced button on this screen, to override any existing permissions on the root folder. Cela va 100% STOP Windows from messing with your changes after you've implemented them.

Once this has been set, you won't need to worry about that tâche planifiée any more.

## Si vous ne have the Permissions to alter `UpdateOrchestrator` Tasks

>

Altering the `UpdateOrchestrator`'s tasks now requires `SYSTEM` permissions, neither `administrator` nor `TrustedInstaller` permissions.

[One of the ways of going around this is by](https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/no-permission-to-disable-a-task-in-task-scheduler/4ec2c460-7c2f-4593-b84f-c9b1687ae797):

- Installing Microsoft's own [`PsTools`](https://docs.microsoft.com/en-us/sysinternals/downloads/pstools).

- Opening Invite de commandes as and administrator and `cd` into your local `PsTools` folder.

- Executing:

```
psexec.exe -i -s %windir%\system32\mmc.exe /s taskschd.msc

```

- Going to the `UpdateOrchestrator` and disabling the `Reboot` task(s), as previously mentioned.

## Remarque for Windows 1709 (Fall Creators' Update)

The Windows installation process changes permissions for files, so assurez-vous you go through this guide again after upgrading.

J'ai heard reports that a new task is made called `AC Power Install` which requires the same steps applied to it, but J'ai not seen this task produced on my own device after installing the 16299.192 (2018-01 Meltdown patch) update so I cannot advise with absolute certainty. The same steps as performed above should work on any task that has been introduced.

## Étape 3 : Check Wake Timers in PowerShell

You have disabled minuterie de réveil functionality, but Windows 10 has a habit of not respecting that setting, so to be safe, we're going to run a PowerShell command to weed out all tasks that can, feasibly, wake your PC. Open an Administrative PowerShell invite de commandes (Start, type 'Powershell', Ctrl+Shift+Enter) and place this command in the window:

```
Get-ScheduledTask | where {$_.settings.waketorun}

```

Go through all the tasks it lists and remove their permission to wake your computer. You shouldn't need to worry about permissions like we did with `Reboot`; that was an outlying case.

## Étape 4 : Check what hardware can wake your PC

Lots of USB hardware, when engaged, has the ability to wake your PC (keyboards often do when keys are pressed par exemple); wake-on-LAN is typically also an issue in this scenario. For the uninitiated, a common and useful feature of modern hardware is called 'Wake on LAN'. If your device is attached to a local network by way of a wired Ethernet cable (it doesn't work for Wi-Fi) vous pouvez send communications through that will wake your PC up when received. It's a feature I use often but it must be brought into line, as its default behaviour is far too overzealous.

Enter la commande suivante into an administrative invite de commandes:

```
powercfg -devicequery wake_armed

```

À partir de là, trouvez le devices in your Gestionnaire de périphériques (Panneau de configuration) and, under the Power Management tab, remove their ability to wake your computer up. Si vous avez network interface cards that you want to keep Wake-on-LAN for, enable Only wake this device if it receives a magic packet as opposed to waking up for all traffic sent its way.

## Étape 5 : Vérifiez le Stratégie de groupe just to be completely sure

Faites un clic droit sur your menu Démarrer et sélectionnez Run. Type in `GPEdit.MSC`. Trouvez le following setting under Computer Configuration → Administrative Templates → Windows Components → Windows Updates → Enabling Windows Update Power Management to automatically wake up the system to install scheduled updates. Double-cliquez sur it and set it to Disabled.

## Étape 6 : Disable waking your machine up for automatic maintenance

Someone at Microsoft has a sense of humour for this one. Si vous êtes woken at night by your PC, the one thing you want to hear more than anything else is the disque dur crunching and grinding as it does a nightly defragmentation. Disable this feature by finding the Security and Maintenance section of the Panneau de configuration. De là, expand Maintenance and look for the link to Change Maintenance settings.

Set the time to something more sociable (7PM is fine) and disable the machine's ability to wake itself up for the task.
Répondre

Revenir à « Windows 10 »