We have all been there. You leave your computer rendering a video or downloading a large file overnight, only to wake up and find your PC sitting at the login screen. Windows 11 decided it was the perfect time to install a minor security patch and forced a restart, ruining your progress.
Microsoft makes it intentionally difficult to stop automatic reboots, but as an IT admin, I use a few group policy and registry tricks to take back control of when the PC restarts.
Method 1: Configure Active Hours (The Easy Way)
This doesn’t completely stop restarts, but it tells Windows when you are strictly using the machine.
- Press Win + I to open Settings.
- Click on Windows Update in the left sidebar.
- Click on Advanced options.
- Under the “Active hours” section, change the “Adjust active hours” setting from Automatically to Manually.
- Set the Start time and End time to cover the maximum allowed 18-hour window (e.g., 8:00 AM to 2:00 AM).
Method 2: Edit Group Policy (For Pro/Enterprise Users)
If you have Windows 11 Pro, you can use the Group Policy Editor to completely block forced reboots while you are logged in.
- Press Win + R, type gpedit.msc, and press Enter.
- In the left pane, navigate to: Computer Configuration > Administrative Templates > Windows Components > Windows Update > Manage end user experience.
- On the right side, find the policy named No auto-restart with logged on users for scheduled automatic updates installations.
- Double-click it, select the Enabled radio button in the top left corner, and click Apply, then OK.
Method 3: The Registry Edit (For Windows 11 Home Users)
Windows 11 Home doesn’t have the Group Policy Editor, so we have to apply the exact same rule via the Registry.
- Press Win + R, type regedit, and hit Enter.
- Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows - Right-click the Windows folder, select New > Key, and name it WindowsUpdate.
- Right-click the new WindowsUpdate key, select New > Key, and name it AU.
- Click on the AU key. Right-click in the empty space on the right pane, select New > DWORD (32-bit) Value.
- Name it exactly NoAutoRebootWithLoggedOnUsers.
- Double-click this new value and change its Value data to 1. Click OK.
FAQ
Will this stop me from receiving security updates?
No. Windows will still download and install updates in the background. However, it will sit there waiting for you to manually click “Restart Now” instead of doing it on its own.
Faizan Ahmed is a senior IT specialist and the lead editor at TechWiredWorld. With over a decade of experience repairing PCs and mobile devices, his mission is to provide clear, actionable tech troubleshooting guides.