How to prevent Windows 11 from auto rebooting if user is logged on

Benderinho 0 Reputation points
2023-08-01T12:56:41.4766667+00:00

For Windows 11 we configured GPOs for Windows Update as recommended by Microsoft:

https://learn.microsoft.com/en-us/windows/deployment/update/wufb-wsus

So we have just 2 GPO update settings configured for Windows 11 clients: One pointing clients to company's WSUS and one configuring WSUS as the scan source for all 4 update categories.

We do not have automatic update schedule configured, as this is not recommended by MS anymore. Moreover clients should install updates for Windows whenever possible, not only at a specific daytime. So using RegKey NoAutoRebootWithLoggedOnUsers or corresponding GPO (Configure Automatic Updates) is no option.

Problem: Windows 11 auto reboots during night after installing updates even if a user is logged on.

Result: Windows 11 cannot be used for applications, that are running multiple days, like simulations, measurements or experiments. An automatic reboot after patch day would interrupt running processes and one has to restart the job from scratch.

Expected Behavior: Option to disable automatic reboot if a user is logged on without the need to configure automatic update schedule GPO.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,988 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adam J. Marshall 9,121 Reputation points MVP
    2023-08-01T20:04:04.4066667+00:00

    Setup your policies like my guide here

    https://www.ajtek.ca/wsus/how-to-setup-manage-and-maintain-wsus-part-4-creating-your-gpos-for-an-inheritance-setup/

    It will not restart the computer if a user is logged in unless the rolling deadline has elapsed and the system must restart because of policy. It will also provide opportunities for the user to restart the client before the deadline.