Automatic Maintenance WakeUp Policy
Stratégie de sortie de veille de la maintenance automatique
Explanation
This policy setting allows you to configure Automatic Maintenance wake up policy.
The maintenance wakeup policy specifies if Automatic Maintenance should make a wake request to the OS for the daily scheduled maintenance. Note, that if the OS power wake policy is explicitly disabled, then this setting has no effect.
If you enable this policy setting, Automatic Maintenance will attempt to set OS wake policy and make a wake request for the daily scheduled time, if required.
If you disable or do not configure this policy setting, the wake setting as specified in Security and Maintenance/Automatic Maintenance Control Panel will apply.
Ce paramètre de stratégie vous permet de configurer la stratégie de sortie de veille de la maintenance automatique.
La stratégie de sortie de veille de la maintenance automatique indique si la maintenance automatique doit adresser une demande de sortie de veille au système d’exploitation pour la maintenance planifiée quotidiennement. Notez que si la stratégie de sortie de veille du système d’exploitation est explicitement désactivée, ce paramètre de stratégie n’a aucun effet.
Si vous activez ce paramètre de stratégie, la maintenance automatique tente de définir la stratégie de sortie de veille du système d’exploitation et adresse une demande de sortie de veille pour l’heure planifiée quotidiennement, le cas échéant.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le paramètre de sortie de veille spécifié via l’option Sécurité et maintenance/Maintenance automatique du Panneau de configuration s’applique.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance- Value name
WakeUp
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: msched/WakeUpPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WakeUp' -Value 1 -Type DWordDisable
# Disable: msched/WakeUpPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WakeUp' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": msched/WakeUpPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance'
Remove-ItemProperty -Path $k -Name 'WakeUp' -ErrorAction SilentlyContinue