Share via

Stop. Restarting. MY. Computers.

Annoyed Microslop Customer 0 Reputation points
2026-05-15T18:17:48.9566667+00:00

Hello fellow windows users

Just wondering if anyone has a permanent hack to preventing OUR computers from being rebooted, even when microslop believes it is "Out of our working hours" etc?

This is an incredibly disruptive process and I am absolutely sick of MY computer restarting and all my stuff closing on me.

Thanks for any advice.

Windows for home | Windows 11 | Windows update

2 answers

Sort by: Most helpful
  1. Thomas4-N 15,625 Reputation points Microsoft External Staff Moderator
    2026-05-18T09:01:23.8766667+00:00

    Hello Annoyed Microslop Customer,

    Please note that the edition (Home or Pro) matters a lot here.

    The lightest step that works on either edition is to widen Active Hours so Windows treats more of your day as off-limits for restarts. Open Settings > Windows Update > Advanced options > Active hours, and either set the range manually (max window is 18 hours) or switch it to "Automatically" so Windows learns your usage pattern. This alone often takes care of casual restarts.

    If you're on Windows 11 Pro, the proper knob is in Group Policy. Open gpedit.msc and go to Computer Configuration > Administrative Templates > Windows Components > Windows Update > Manage end user experience, then enable "No auto-restart with logged-on users for scheduled automatic updates installations". After that, Windows won't force a reboot while you're signed in, though pending updates will still install on the next manual restart.

    If you're on Windows 11 Home, there's no Group Policy editor, so the equivalent is a registry edit. Open regedit, navigate to HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU (create the keys if they don't exist), and add a DWORD named NoAutoRebootWithLoggedOnUsers set to 1. Reboot once for it to take effect.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    Was this answer helpful?

    0 comments No comments

  2. Q&A Assist
    2026-05-15T18:18:01.7833333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To prevent Windows from automatically restarting after updates, configure Windows Update so it does not auto-reboot when someone is signed in.

    Use Group Policy/registry-based settings (Windows 10/11):

    1. Ensure Automatic Updates is set to scheduled install
      • Under HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, set:
        • AuOptions = 4 (Auto download and schedule the install).
    2. Block auto-restart when a user is logged on
      • In the same key HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, enable NoAutoRebootWithLoggedOnUsers.
      • This prevents automatic restarts when a user is signed in. If a restart is manually scheduled from the update notification, that scheduled time still takes precedence.
    3. Optionally, control active hours
      • Under HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate:
        • SetActiveHours = 1 to enable active hours.
        • ActiveHoursStart and ActiveHoursEnd (0–23) to define when restarts are not allowed.
      • Or set SetActiveHours = 0 to disable automatic restart outside active hours.

    These settings reduce or prevent surprise reboots, but if a restart is never allowed, some updates may remain unapplied until a manual reboot is done.


    References:

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.