Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Use group policy settings, mobile device management (MDM), or the Windows registry to configure when devices restart after a Windows update. Choose whether to schedule update installations, set restart policies, configure active hours, or use a combination of these options.
Note
Don't directly edit the Windows registry.
Schedule update installation
In group policy, use Configure Automatic Updates to force a restart after a specific installation time.
To set the time:
- Open Configure Automatic Updates.
- Select option 4 - Auto download and schedule the install.
- Under Scheduled install time, enter a time. Alternatively, schedule installations during automatic maintenance. To use this method, go to Computer Configuration\Administrative Templates\Windows Components\Maintenance Scheduler.
Note
This policy is a legacy policy that doesn't apply to Windows 11 and might be removed in a future release.
While not recommended, you can achieve the same result by using the Windows registry:
- Go to
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU. - Set
AuOptionsto4andScheduledInstallTimeto your preferred time. - Enable
AlwaysAutoRebootAtScheduledTime. - Specify the warning delay in minutes by using
AlwaysAutoRebootAtScheduledTimeMinutes.
For a detailed description of these registry keys, see Registry keys used to manage restart.
Configure active hours
Active hours identify the period of time when you expect the device to be in use. By default, active hours are from 8 AM to 5 PM. However, users can change them manually. Use active hours to reduce update notifications or control when automatic restarts are permitted ahead of the compliance deadline. After a compliance deadline expires, restart attempts and update notifications immediately ahead of them occur regardless of active hours.
You can also define a max active hours range, calculated from the start time.
Note
The max active hours length for Windows 10, version 1607 and Windows Server 2016 was 12. Later versions support max active hours length of 18 hours.
Delay automatic restart
When you enable Configure Automatic Updates in group policy, use this policy to delay automatic restarts after updates install:
- Turn off auto-restart for updates during active hours prevents automatic restart during active hours.
Note
For Remote Desktop Protocol (RDP) connections, only active RDP sessions are considered signed-in users. Devices without local users, or active RDP restart.
You can also use the Windows registry to prevent automatic restarts when a user is signed in:
- Go to
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU. - Set
AuOptionsto4and enableNoAutoRebootWithLoggedOnUsers. As with group policy, if a user schedules the restart through an update notification, it overrides this setting.
For a detailed description of these registry keys, see Registry keys used to manage restart.
Configure active hours with Group Policy
Configure active hours using Group Policy.
Go to Computer Configuration > Administrative Templates > Windows Components > Windows Update.
Open the Turn off auto-restart for updates during active hours policy setting.
Enable the policy, and then set the start and end times.

Configure active hours with MDM
To configure active hours, MDM uses the following settings in the Update Policy CSP:
Configure active hours through the Windows registry
Important
Don't use this method unless you can't use group policy or MDM. Registry settings can conflict with configurations set by other methods.
To configure active hours via the registry:
- Go to
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate. - Use
SetActiveHoursto enable or disable active hours. - Use
ActiveHoursStartandActiveHoursEndto specify the time range.
For a detailed description of these registry keys, see Registry keys used to manage restart.
Tip
To manually configure active hours on a device, go to Settings > Windows Update > Advanced options and select Active hours.
Configure active hours maximum range
You can specify the maximum range of active hours that users can set on their devices. This limit balances user flexibility by providing sufficient time for devices to install updates and restart outside of working hours. The system calculates the maximum range from the configured active hours start time.
- Group Policy: Go to Computer Configuration*Administrative Templates**Windows Components**Windows Update* and open Specify active hours range for auto-restarts.
- MDM: Use ActiveHoursMaxRange.
Limit restart delays
After Windows installs an update, it attempts to automatically restart outside of active hours unless blocked by your configurations. To reduce the possibility of a forced restart that disrupts device usage, allow automatic restarts outside of active hours. If the restart doesn't succeed after a default period of two days, the user sees a notification that a restart is required. To change the delay, use Specify deadline for automatic updates and restarts for quality updates and Specify deadline for automatic updates and restarts for feature updates to specify the deadline (time to required install) and grace period (time from install to required restart).
Note
Legacy policies to manage update deadlines and automatic restarts don't apply to Windows 11. Don't use them. Legacy policies might be removed in a future release.
Control restart notifications
Display options for update notifications
You can define which Windows Update notifications appear to users. This policy doesn't control how or when updates are downloaded and installed.
To configure this setting through Group Policy:
- Go to Computer Configuration\Administrative Templates\Windows Components\Windows Update.
- Open the Display options for update notifications policy.
- Configure one of the following values:
0(default): Use the default Windows Update notifications.1: Turn off all notifications, excluding restart warnings.2: Turn off all notifications, including restart warnings.
To configure this setting through MDM, use UpdateNotificationLevel.
Starting in Windows 11, version 22H2, Apply only during active hours is available as an option for Display options for update notifications.
When you choose this option alongside setting 1 or 2, notifications are disabled only during active hours. To ensure devices stay updated, notifications still appear during active hours if:
- You selected Apply only during active hours.
- An effective update deadline is reached (configured via Specify deadline for automatic updates and restarts for quality updates or Specify deadline for automatic updates and restarts for feature updates). This deadline includes the number of days in the deadline plus the number of days in the grace period. At that point, the user receives a restart notification 15 minutes ahead of a forced restart that can't be rescheduled or delayed.
To configure this behavior through MDM, use UpdateNotificationLevel.
Group Policy settings for restart
In the Group Policy editor, you can find the policy settings for restart behavior under Computer Configuration > Administrative Templates > Windows Components > Windows Update. The following table shows which policies apply to Windows 11.
| Policy | Applies to Windows 11 | Notes |
|---|---|---|
| Turn off auto-restart for updates during active hours | Yes | Use this policy to configure active hours, during which the device won't restart. |
| Specify active hours range for auto-restarts | Yes | Enable this policy to specify the maximum number of hours from the start time that users can set their active hours. |
| Specify deadline for automatic updates and restarts for quality updates | Yes | Use this policy to specify the number of days before quality updates are installed on devices automatically and a grace period which required restarts occur automatically. Users can schedule their own restart throughout the grace period, automatically restart the device outside active hours if permitted by admin configurations, or be forced to restart at the end of the grace period. |
| Specify deadline for automatic updates and restarts for feature updates | Yes | Use this policy to specify the number of days before feature updates are installed on devices automatically and a grace period which required restarts occur automatically. Users can schedule their own restart throughout the grace period, automatically restart the device outside active hours if permitted by admin configurations, or be forced to restart at the end of the grace period. |
Note
- You can only choose one path for restart behavior.
- If you set conflicting restart policies, the actual restart behavior might not be what you expected.
- When using RDP, only active RDP sessions are considered as signed-in users.
- The No auto-restart with logged on users for scheduled automatic updates installation policy was never created as a CSP. In Group Policy this policy doesn't work exactly as per description. This policy can result in no quality update restarts period, given many users never sign out. The recommendation to replace this policy is to use compliance deadline and then to configure no-auto restart to prevent non-user aware restarts prior to reaching the deadline. For server devices, use Configure Automatic Updates options 7 - notify to install and notify to restart.
Registry keys used to manage restart
The following tables list registry values that correspond to the Group Policy settings for controlling restarts after updates in Windows 11.
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
| Registry key | Key type | Value |
|---|---|---|
ActiveHoursEnd |
REG_DWORD |
0-23: Set active hours to end at a specific hour.It starts with 12 AM (0) and ends with 11 PM (23). |
ActiveHoursStart |
REG_DWORD |
0-23: Set active hours to start at a specific hour.It starts with 12 AM (0) and ends with 11 PM (23). |
SetActiveHours |
REG_DWORD |
0: Disable automatic restart after updates outside of active hours.1: Enable automatic restart after updates outside of active hours. |
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
| Registry key | Key type | Value |
|---|---|---|
AUOptions |
REG_DWORD |
2: Notify for download and notify for installation of updates.3: Automatically download and notify for installation of updates.4: Automatically download and schedule installation of updates.5: Allow the local administrator to configure these settings.Note: To configure restart behavior, set this value to 4. |
ScheduledInstallTime |
REG_DWORD |
0-23: Schedule update installation time to a specific hour.It starts with 12 AM (0) and ends with 11 PM (23). |
There are three different registry combinations for controlling restart behavior:
- To set active hours:
- Set
SetActiveHoursto1. - Use
ActiveHoursStartandActiveHoursEndto define the time range.
- Set
- To schedule a specific installation and restart time:
- Set
AUOptionsto4. - Use
ScheduledInstallTimeto specify the installation time.
- Set
- To delay restarting if a user is signed in:
- Set
AUOptionsto4.
- Set