Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012, Windows 8 or Windows RT
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance |
|---|
| Option | Value | Type | Allowed values |
|---|
| Regular maintenance activation boundary | Activation Boundary | REG_SZ | Text |
What it does (vendor 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.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Maintenance Scheduler > Automatic Maintenance Activation Boundary
PowerShell equivalent (generated from the template)
# Regular maintenance activation boundary
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance' -Name 'Activation Boundary' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: msched.admx · policy name ActivationBoundaryPolicy
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012, Windows 8 or Windows RT
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance |
|---|
| Value name | Randomized |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
| Option | Value | Type | Allowed values |
|---|
| Regular maintenance random delay | Random Delay | REG_SZ | Text |
What it does (vendor explanation)
This policy setting allows you to configure Automatic Maintenance activation random delay.
The maintenance random delay is the amount of time up to which Automatic Maintenance will delay starting from its Activation Boundary.
If you enable this policy setting, Automatic Maintenance will delay starting from its Activation Boundary, by upto this time.
If you do not configure this policy setting, 4 hour random delay will be applied to Automatic Maintenance.
If you disable this policy setting, no random delay will be applied to Automatic Maintenance.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Maintenance Scheduler > Automatic Maintenance Random Delay
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance' -Name 'Randomized' -Value 1 -PropertyType DWord -Force
# Regular maintenance random delay
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance' -Name 'Random Delay' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: msched.admx · policy name RandomDelayPolicy
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012, Windows 8 or Windows RT
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance |
|---|
| Value name | WakeUp |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor 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.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Maintenance Scheduler > Automatic Maintenance WakeUp Policy
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler\Maintenance' -Name 'WakeUp' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: msched.admx · policy name WakeUpPolicy