0
点赞
收藏
分享

微信扫一扫

Updating Windows Server 2022

Using the Local Group Policy Editor to change the automatic updates setting in Windows Server 2022:

1. Click the Start menu and type ​gpedit.msc.

2. Navigate to the Windows Update section by clicking on ​Computer

Configuration​, then ​Administrative Templates​, then ​Windows

Components, and finally ​Windows Update​.

3. ​Double-click​ ​Configure Automatic Updates.

4. Select ​Enabled​.

You’re given configuration options.

Under Configure Automatic Updating, you can see that it’s set to ​Auto

Download and Notify to Install​. This is the default setting.

5. Click the drop-down box and select the setting that works best for your

environment.

SETTING UPDATES TO AUTOMATIC VIA PowerShell​ 

To set updates to automatic via PowerShell, you need to navigate to ​C:\Windows\

system32 and stop the Windows Update service.

1. Stop the Windows Update Server service.

net stop wuauserv

2. Set automatic updates to 4 which is enabled.

cscript scregedit.wsf /AU 4

you can use the script program to execute​ scregedit.wsf​. Adding the switch ​/AU 4

enables automatic updates,​ /AU 1​ would disable automatic updates.

3. Start the Windows Updates Server service.

net start wuauserv

Downloading and installing updates

To force Server Core to then detect and install any available updates, simply type

the following command and press Enter.

wuauclt /detectnow

举报

相关推荐

0 条评论