Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Policies for maintenance windows
Microsoft introduced maintenance windows in the January 2026 Windows non-security update for Windows 11, versions 24H2 and later. Access them through Group Policy and mobile device management (MDM) solutions. Similar to the namesake maintenance window feature in Microsoft Configuration Manager, this set of policies native to Windows 11 helps ensure that:
- Update actions only take place during hours set as the maintenance window.
- Your devices remain available and performant at other times.
- Your devices remain updated and secure more consistently.
Note
All times set for maintenance windows adhere to the local time of the device.
What kind of devices benefit from maintenance windows?
Use maintenance windows to manage updates for:
- Userless devices (such as kiosks)
- Critical-use devices (such as medical and manufacturing equipment)
The maintenance window family of policies aims to deliver on two promises:
- The managed device doesn't take update actions outside of the maintenance window.
- The managed device takes high-priority actions to be updated inside the maintenance window.
Given these priorities, the feature doesn't offer extensive notification and scheduling controls for the user. For a device with regular users, consider the default Windows update experience without policies or the compliance deadline experience described earlier.
What kind of updates do maintenance windows manage?
Maintenance windows are a native Windows feature. This feature manages all updates that Windows Update delivers. Eligible updates include standard monthly security updates, hotpatch updates, .NET updates, Microsoft Defender updates, driver and firmware updates, and yearly feature updates.
Maintenance window policies and settings
Choose which update actions automatically take place during a maintenance window. When actions start in a maintenance window, they continue until completion. Actions can overflow to time outside of the maintenance window. However, the system minimizes this risk by not starting actions too close to the end of the current window. For example, if the maintenance window ends at 6 AM, the system only attempts to restart the device before 5:30 AM.
If a device managed through maintenance windows has users, they can still take action on updates. Maintenance windows only control the automatic scheduling of updates. For more information about the specific values and controls available for these policies, see Update Policy CSP.
Policies and settings for OS and driver updates
Use the following controls to manage your maintenance window:
- MaintenanceWindowDurationHours
- MaintenanceWindowEnabled
- MaintenanceWindowMonthlyMonthBasedDayOfMonth
- MaintenanceWindowMonthlySchedule
- MaintenanceWindowMonthlyWeekBasedDayOfTheWeek
- MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth
- MaintenanceWindowRepeatScheduleOption
- MaintenanceWindowStartDate
- MaintenanceWindowStartTime
- MaintenanceWindowUpdateActions
- Use the MaintenanceWindowUpdateActions policy to specify which sets of actions must start inside a maintenance window. Choices are Restart, Install and restart, or Download, install and restart. Actions that you don't select proceed according to defaults or other update policies. Nonselected actions can occur both inside and outside of the maintenance window.
- For example, you can choose Install and restart as the only actions to start in a maintenance window. Then the installation of updates and update-triggered restarts only ever start during your set maintenance window hours. However, downloads follow device defaults or other update policies and can occur outside of the maintenance window.
- Set MaintenanceWindowUpdateActions to Restart only. This way, the device downloads and installs updates before the start of the maintenance window. This process sets the device up for successfully restarting and applying the updates during the maintenance window.
- MaintenanceWindowWeeklyFriday
- MaintenanceWindowWeeklyMonday
- MaintenanceWindowWeeklySaturday
- MaintenanceWindowWeeklySunday
- MaintenanceWindowWeeklyThursday
- MaintenanceWindowWeeklyTuesday
- MaintenanceWindowWeeklyWednesday
- MaintenanceWindowDailyInterval
- MaintenanceWindowMonthlyInterval
- MaintenanceWindowWeeklyInterval
How to set up a one-time maintenance window
Use one-time maintenance windows for devices that don't have a regular offline schedule, such as medical equipment and factory floor devices. Set the following policies for a one-time, non-recurring maintenance window:
- Set MaintenanceWindowEnabled to
1. - Set MaintenanceWindowUpdateActions to a desirable value.
- Set MaintenanceWindowStartDate to the start date of this window.
- Set MaintenanceWindowStartTime to the start time of this window.
- Set MaintenanceWindowDurationHours to a desirable value. You need this value to be as long as necessary for the device to complete all updates.
- Set MaintenanceWindowRepeatScheduleOption to
1, to signal a one-time, non-recurring window.
Keep your maintenance window values up to date to avoid unintended behavior.
- Future settings: You can set a one-time maintenance window as far out as 90 days in the future. Once the set maintenance window time passes and you don't update or erase the policy value, the device won't perform the governed update actions for another 90 days.
- Past settings: Check that the one-time maintenance window isn't set for more than 90 days in the past. The system considers these settings to be out of date. The system ignores the value and assumes that there's no maintenance window.
How to set up a repeating maintenance window
A repeating maintenance window works best for devices that have a fixed schedule of offline time, such as retail kiosks. Set the following policies for a repeating maintenance window:
- Set MaintenanceWindowEnabled to
1. - Set MaintenanceWindowUpdateActions to a desirable value.
- Set MaintenanceWindowStartTime to the start time of this window.
- Set MaintenanceWindowDurationHours to a desirable value. You need this value to be as long as necessary for the device to complete all updates.
- Set MaintenanceWindowRepeatScheduleOption to
2(repeat daily),3(repeat weekly), or4(repeat monthly).
Configure MaintenanceWindowRepeatScheduleOption as follows:
- To repeat every day: Set it to
2. Then decide at what interval the maintenance window should occur. Set MaintenanceWindowDailyInterval to1for every day or all the way up to 90 days. - To repeat every week: Set it to
3.- Then decide the cadence at which the weekly intervals should occur. Set MaintenanceWindowWeeklyInterval between
1and12to determine how frequently the weekly maintenance window occurs. - Then decide which days of the week to apply the maintenance window.
- Set MaintenanceWindowWeeklySunday to
1if the window should repeat every Sunday. Set it to0if it shouldn't apply on Sundays. - Set corresponding values for other days of the week as well.
- Set MaintenanceWindowWeeklySunday to
- Then decide the cadence at which the weekly intervals should occur. Set MaintenanceWindowWeeklyInterval between
- To repeat every month: Set it to
4.- Then configure how the maintenance window should repeat within a month:
- Repeat on the same day each month (for example, the 1st day of the month): Set MaintenanceWindowMonthlySchedule to
1. In this case, set MaintenanceWindowMonthlyMonthBasedDayOfMonth to specify the repeating day. - Repeat on a specific day of a specific week (for example, the 2nd Tuesday each month): Set MaintenanceWindowMonthlySchedule to
2. Then set MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth to specify the repeating week. Finally, set MaintenanceWindowMonthlyWeekBasedDayOfTheWeek to specify the repeating day of that week. - Repeat on the last day of each month: Set MaintenanceWindowMonthlySchedule to
3.
- Repeat on the same day each month (for example, the 1st day of the month): Set MaintenanceWindowMonthlySchedule to
- Then configure the monthly interval cadence that the maintenance window should occur. You can set MaintenanceWindowMonthlyIntervalto a value between
1and3to determine this interval.
- Then configure how the maintenance window should repeat within a month:
There's no need to configure MaintenanceWindowStartDate. The configured repeating maintenance window takes effect as soon as you set the Group Policy or when the MDM solution refreshes the policy setting on the end point device.
Do maintenance windows take precedence over other update scheduling configurations?
We generally recommend that admins configure either maintenance windows or update deadlines, but not both together. Configuring both types of update controls doesn't break the update process, but it adds confusion about when the specified update actions can occur.
Updates governed by maintenance windows respect the maintenance window configuration over all other update rollout configurations except for expired deadlines. That means that Specify deadline for automatic updates and restarts for either quality or feature updates and Configure Automatic Updates are largely ignored in favor of the maintenance windows. Expired deadlines are the only case in which update settings force update actions to occur outside of the maintenance window. The following examples show how expired deadlines take precedence over configured maintenance windows.
Example 1
The admin configures the deadline for a quality update to be three days. They also configure a maintenance window governing that update to repeat weekly every Saturday and restrict update install, download, and restart within that time period. When the update is released on Patch Tuesday, the effective deadline expires on Friday. The update installs, and the device restarts according to the deadline configuration by Friday instead of waiting for the Saturday maintenance window.
Example 2
The admin configures the deadline for a quality update to be seven days. They also configure a maintenance window governing that update to repeat weekly every Saturday and restrict update install, download, and restart. When the update is released on Patch Tuesday, the effective deadline doesn't expire until the following Tuesday. Since the maintenance window occurs before the deadline expires, the selected update actions occur within the maintenance window. When the update successfully completes within the maintenance window, nothing occurs when the deadline expires on Tuesday.
Configuring maintenance windows
Access and configure maintenance windows through Group Policy or mobile device management (MDM) solutions.
- Through Group Policy: Administrative Templates > Windows Components > Windows Update > Configure maintenance windows for automatic updates.
- Via Microsoft Intune: Intune portal > Devices > Manage devices > Maintenance windows. Learn more at Configure maintenance windows for Windows updates in Microsoft Intune.