Disable automatic restart of Windows after an update

Flying trick to disable and disable the automatic restart of the PC that every time Windows Update breaks the boxes when it updates Windows automatically. While restarting the PC is necessary for Windows to install updates from Windows Update, it is quite irritating if this happens while you are working forcing us to stop what you are doing or, in the worst cases, losing the last part of the work done.
While in previous versions of Windows (before Windows 10), blocking computer restart warnings that appear every 5 minutes required changes to the registry, Microsoft understood the problem and intervened by entering some options to prevent the computer from restarting while you work.
READ ALSO: How to disable or suspend Windows 10 updates

How to disable automatic restart after an update from local group policy editor

On Windows 7 and Windows 10, there are two ways to block reboots after Windows Update has installed an update:
The first way is to open Group Policy. Press the Windows-R keys together and run the gpedit.msc command. Then go to the local Group Policy path, on the left side: Computer Configuration> Administrative Templates> Windows Components> Windows Update . On the right side, look for the item Postpone restart for scheduled installations, click on it twice and then indicate the minutes of delay for the restart.
You can also search for and click on the item Exclude automatic restart for scheduled installations of Automatic Updates with users not connected and in the following window, at the top, set Activated .

Disable automatic restart of Windows 10 and Windows 7 by registry key

In Windows 7 and Windows 10, a registry key can be changed to disable restart after an update.
Press the Windows-R keys together to bring up the Run box and run the regedit command. Navigate, on the left side, to the path HKEY LOCAL MACHINE \ Software \ Policies \ Microsoft \ Windows \ WindowsUpdate \ AU .
Within this key, in the empty space on the right, click with the right mouse button and create a new Dword value " NoAutoRebootWithLoggedOnUsers " with value 1 to disable the automatic restart.
In Windows 10 you can go to Computer Configuration \ Administrative Templates \ Windows Components \ Windows Update, open the setting Disable automatic restart for updates during the working hours, activate it and then set an interval of hours during which the computer will never be restarted.

Disable automatic restart of Windows 10 from settings

Although there is no option in the Settings app to completely disable updates, in Windows 10 there is no need to change local group policy options or registry keys, because there is an option that allows you to define the time of activities, to make updates less intrusive and not to disturb in the hours when you work on the computer. This means that if an update is pending, the restart will take place outside of business hours .
To enable the hours of activity on Windows 10, open the Settings from the Start menu. Then go to Update and security, click on Windows Update and then on Change business hours . At this point you can make Windows automatically adjust the time based on the usage detected or define a precise time interval during which the PCs must never restart. The maximum time that can be set is 18 hours. After completing the steps, if an update is pending, the computer will only restart after the specified hours of activity, avoiding interruptions while working.
In the Windows Update Advanced Options there is an option to allow the computer to restart automatically as soon as possible, which must be kept disabled.
Also, when there is an update that is waiting for the computer to restart, in the Windows Update settings you will see a link that allows you to choose the restart time. You can therefore give a time or even postpone the restart for up to 7 days in the future.
Finally, in the Advanced Options of Windows Update, there is an option that allows you to postpone the installation of updates after a few days.

Leave Your Comment

Please enter your comment!
Please enter your name here