Why windows 11 restarts when it is not able to update

Support 0 Reputation points
2024-06-05T09:51:51.86+00:00

We are running stand alone systems with some production software, they restart automatically when they cannot update

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
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

2 answers

Sort by: Most helpful
  1. S.Sengupta 17,311 Reputation points MVP
    2024-06-05T11:18:16.04+00:00

    I shall suggest you look at the event viewer error log to find out the clue.

    Open PowerShell as Administrator and run the following script:

    # Disable Automatic Restarts
    New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Force
    New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force
    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name 'NoAutoRebootWithLoggedOnUsers' -Value 1
    
    
    1 person found this answer helpful.

  2. Daisy Zhou 21,361 Reputation points Microsoft Vendor
    2024-06-06T12:41:39.1866667+00:00

    Hello Support,

    Thank you for posting in Q&A forum.

    Windows 11 may restart when it is not able to update due to several reasons, such as:

    1. The update requires a restart to complete the installation process.
    2. The update may have encountered an error or issue during the installation process, which requires a restart to resolve.
    3. The update may have caused a conflict with other software or drivers on your system, which requires a restart to resolve.

    To prevent Windows 11 from automatically restarting when it encounters an update issue, you can change the Windows Update settings to notify you before restarting. To do this, go to Settings > Update & Security > Windows Update > Select Schedule the restart and choose a time that's convenient for you. This will give you more control over when your system restarts after an update.

    https://support.microsoft.com/en-us/windows/manage-updates-in-windows-643e9ea7-3cf6-7da6-a25c-95d4f7f099fe#WindowsVersion=Windows_11

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.