There are few things more infuriating than stepping away from your computer for a quick lunch break, only to return and find that Windows 11 decided it was the perfect time to install a minor update and forcefully restart your system, wiping out all your unsaved work in the process.
While the Windows Settings app allows you to configure “Active Hours” to prevent restarts during a specific timeframe, it is not a foolproof solution. If you leave your PC rendering a heavy video or compiling code overnight outside of those active hours, Windows will ruthlessly restart it. To completely strip the operating system of its ability to reboot your computer without your explicit permission, you must use the Local Group Policy Editor.
Step 1: Open the Local Group Policy Editor
Note: This tool is only available on Windows 11 Pro, Enterprise, and Education editions. It is not accessible on Windows 11 Home.
- Press the Windows Key + R to open the Run dialog box.
- Type
gpedit.mscand press Enter to launch the editor.
Step 2: Navigate to the Windows Update Policies
You need to drill down into the administrative templates that govern how the Windows Update service operates.
- In the left-hand navigation pane, look under Computer Configuration.
- Expand Administrative Templates.
- Expand Windows Components.
- Scroll down almost to the bottom of the list and expand Windows Update.
- Click on the Manage end user experience folder.
Step 3: Enable the “No Auto-Restart” Policy
Now we will explicitly tell Windows that it is never allowed to restart the computer if a user account is currently logged in.
- In the right-hand pane, look for a policy named No auto-restart with logged on users for scheduled automatic updates installations.
- Double-click this policy to open its configuration window.
- Select the Enabled radio button in the top left corner.
- Click Apply, then click OK.
How the System Will Behave Now
The policy change takes effect immediately without requiring a reboot.
Moving forward, Windows 11 will continue to download and install updates in the background automatically (unless you have disabled that as well). However, when the installation finishes and the system reaches the “Pending Restart” phase, Windows will simply leave a notification in your Action Center. It will stubbornly wait indefinitely until you manually click the “Restart” button in the Start Menu, ensuring your overnight renders, long downloads, and unsaved documents are perfectly safe.