How to disable automatic restart after update on windows server 2022?
- User
How to disable automatic restart after update on windows server 2022?
- Assistant
To prevent Windows Server 2022 from automatically restarting after installing updates, you can configure the settings using Group Policy or the Local Group Policy Editor if it's a standalone server. Here's how to do it:
Using Group Policy (for domain-joined servers)
- Open the Group Policy Management Console by running
gpmc.msc. - Navigate to the appropriate Group Policy Object (GPO) that applies to the server(s) you want to change the setting for.
- Right-click the GPO and select
Edit. - In the Group Policy Management Editor, navigate to:
code
Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update - Look for the policy titled
Configure Automatic Updates. - Set it to
Enabledand then choose option2 - Notify for download and auto install. This will notify the user to download and then install the updates, but won't automatically restart the server. - Click
OKto save the policy setting.
Using Local Group Policy Editor (for standalone servers)
- Open the Local Group Policy Editor by running
gpedit.msc. - Navigate to:
code
Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update - Look for the policy titled
Configure Automatic Updates. - Set it to
Enabledand then choose option2 - Notify for download and auto install. This setting will notify the admin that updates are available, but won't automatically install them or restart the server. - Click
OKto save the setting.
Using the Registry (Advanced users)
If you're comfortable modifying the Windows registry, you can also change this setting directly in the registry. However, it's important to be careful when editing the registry, as incorrect changes can cause system instability.
- Open Registry Editor by typing
regeditin the Run dialog (pressWin + Rto open Run). - Navigate to the following key:
If any of the keys in the path don't exist, you'll need to create them.code
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
- Open the Group Policy Management Console by running
- User
How to point this GPO to Security group, so that it only applies to PCs which are members of this group?
- Assistant
- User
How to check member of which groups a computer is?
- Assistant
- User
How to check it from target PC if it has this information
- Assistant