Automatic Maintenance Activation Boundary
Limite d’activation de la maintenance automatique
Explanation
This policy setting allows you to configure Automatic Maintenance activation boundary.
The maintenance activation boundary is the daily schduled time at which Automatic Maintenance starts
If you enable this policy setting, this will override the default daily scheduled time as specified in Security and Maintenance/Automatic Maintenance Control Panel.
If you disable or do not configure this policy setting, the daily scheduled time as specified in Security and Maintenance/Automatic Maintenance Control Panel will apply.
Ce paramètre de stratégie vous permet de configurer la limite d’activation de la maintenance automatique.
La limite d’activation de la maintenance représente l’heure quotidienne à laquelle est planifiée la maintenance automatique.
Si vous activez ce paramètre de stratégie, cela entraîne le remplacement de l’heure quotidienne par défaut planifiée via l’option Sécurité et maintenance/Maintenance automatique dans le Panneau de configuration.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’heure quotidienne planifiée 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
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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/ActivationBoundaryPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Regular maintenance activation boundary
Set-ItemProperty -Path $k -Name 'Activation Boundary' -Value '<value>' -Type StringDisable
# Disable: msched/ActivationBoundaryPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msched/ActivationBoundaryPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance'
Remove-ItemProperty -Path $k -Name 'Activation Boundary' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Regular maintenance activation boundaryLimite d’activation de la maintenance classiqueActivationBoundary | Text boxtext | Activation Boundary | REG_SZ | Default (UI): 2000-01-01T02:00:00 |