Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

How to Stop Windows 11 From Auto-Updating and Restarting While Working

Evan MercerOctober 26, 2026 Comments (0)
stop windows 11 auto update

Windows 11 updates are perhaps among the most annoying parts of trying to work in the off hours. Without any way to cancel updates anymore (you can only delay them, and even that doesn’t always work), some updates will get applied, and Windows will notify you that it will restart the PC as soon as you stop working. Here’s how to stop Windows 11 auto-update restarts for as long as possible.

Note that these fixes likely won’t last forever, as Windows 11 will eventually push vital updates onto a device and force you to restart to apply them after enough time has passed.

Fix 1 – Stop Windows 11 Auto Update Restarts via Registry Editor or Group Policy

There are two ways to change Windows Update restart settings for the whole PC. Registry Editor lets you modify system-wide settings, while Group Policy provides a way to configure them on supported Windows editions and can also be used to manage remote PCs. The Local Group Policy Editor isn’t included with Windows 11 Home.

Step 1. Search for and open “Registry Editor” or run regedit. If prompted by User Account Control, select “Yes” to allow it to make changes.

Step 2. Drag over the address bar at the top and replace it with the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

Step 2b. If you’re getting an error or nothing shows up, navigate to just

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows

Then, in the sidebar on the left, create a new “Key” with the value “WindowsUpdate.” Inside it, make an “AU” key in the same way.

How to Stop Windows 11 From Auto Updating and Restarting While Working 1

Step 3. Open the new “AU” key and, in the section on the right, right-click and choose to create a new “DWORD (32-bit).” Name it “NoAutoRebootWithLoggedOnUsers.”

How to Stop Windows 11 From Auto Updating and Restarting While Working 2

Step 4. Search for and open “Registry Editor” or run regedit. If prompted by User Account Control, select “Yes” to allow it to make changes.

How to Stop Windows 11 From Auto Updating and Restarting While Working 3

Step 5. Close Registry Editor. The value is saved automatically, but the setting may not take effect in every configuration, and a restart may be needed.

If you want to use Group Policy, you can find the appropriate setting at Computer Configuration > Administrative Templates > Windows Components> Windows Update.

In there, enable the option “No auto-restart with logged on users for scheduled automatic updates installations” by right-clicking on it and selecting the “Enable” option in the top-left. You need to manually use “Apply” for these changes.

Fix 2 – Disable Automatic Restarts Windows 11 Has By Changing Active Hours

By default, Windows won’t schedule automatic restarts within your working hours, and the hours themselves can be flexible. In theory, you can change your working hours as soon as you get a notification about an update, which delays the restart.

However, to stop Windows 11 auto update restarts altogether, you can run a script that periodically changes working hours so they’re essentially always active.

Step 1. Open Notepad and paste the following commands inside:

for /f %%i in (‘powershell “((get-date).Hour+18) %% 24”’) do set startHour=%%i

for /f %%i in (‘powershell “((get-date).Hour+12) %% 24”’) do set endHour=%%i

reg add HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings /v ActiveHoursStart /t REG_DWORD /d %startHour% /f

reg add HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings /v ActiveHoursEnd /t REG_DWORD /d %endHour% /f

Step 2. When saving the file, after entering a name, add the BAT extension manually.

How to Stop Windows 11 From Auto Updating and Restarting While Working 4

Step 3. Save the file in a permanent location on the same drive as Windows and remember where it is.

Step 4. Open the Command Prompt as an administrator.                            

Step 5. Run the following command:

schtasks /create /sc HOURLY /mo 1 /tn “MyHourlyTask” /tr “C:\Path-to-script.bat”

Here, “MyHourlyTask” is a name (you can customize it), while the last part is the path to the script file (copy it from File Explorer).

Note that you should customize the prompt before copying it into Command Prompt, as hitting “Ctrl + V” immediately runs it. You can use Notepad to make the changes.

You can use the “Copy as path” option on the file if you want to apply its address only.

How to Stop Windows 11 From Auto Updating and Restarting While Working 5

Here’s how a command might look in Command Prompt:

How to Stop Windows 11 From Auto Updating and Restarting While Working 6

Step 6. To confirm the task has been created, you can open Task Scheduler and check for it in the Task Scheduler Library.

How to Stop Windows 11 From Auto Updating and Restarting While Working 7

You can also delete it from here if you ever want to undo the change, then manually change working hours back to normal.

Categories: Windows

Author Evan Mercer

I’m a computer science grad who loves to tinker with smartphones and tablets in my spare time. When I’m not writing about how to fix techy problems, I like hanging out with my dogs and sipping nice wine after a tough day.

You Might Also Like

  • Win7 User Account Control settings

    Enable or Disable User Account Control (UAC) in Windows

    Mitch BartlettWindows
  • Windows 11 Disable Are you sure you want to move this file to the Recycle Bin Dialog

    Windows 11: Disable “Are you sure you want to move this file to the Recycle Bin?” Dialog

    Mitch BartlettWindows
  • bluetooth-toggle-missing-windows-10

    Fix Bluetooth Toggle Missing on Windows 10 or 11

    Madalina DinitaWindows
  • surface-pen-not-working-after-update

    Fix Surface Pen Not Working After Update

    Madalina DinitaWindows

Leave a Reply

Your email address will not be published. Required fields are marked *

  • outlook removed attachments from reply

    Why Does Outlook Remove Attachments From Replies? 

  • volume size error when formatting usb

    How to Troubleshoot the Volume Size Error When Formatting Your USB

  • system taking so much disk space

    Why Is System Taking So Much Disk Space and How Do I Fix It?

  • creating rules in outlook

    Your Guide to Creating Rules in Outlook

  • diskpart no volumes listed

    No Volumes Detected in DiskPart – What to Do

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on October 26, 2026 by Evan Mercer