2

As you know in Windows Desktop and Windows Server with UI, in Windows Update, we have one option like below

Give me updates for other Microsoft products when I update Windows.

and we can enable or disable this option to update for example SQL Server or PowerShell or etc, automatically.

So I want similar feature in Windows Core 2022, but I cannot find this option in Windows Core, How to enable this feature in Windows Core 2022?

1 Answers1

1

You need Microsoft Update rather than the default Windows Update. Microsoft Update includes updates from Windows Update and from Office Update, in addition to updates for other Microsoft products and for third-party device drivers.

See the post Switch server core to use Microsoft Update instead of Windows Update, where the accepted answer suggests this PowerShell code:

(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")

To check if it worked, you could use the following commands :

$MUSM = New-Object -ComObject "Microsoft.Update.ServiceManager"
$MUSM.Services | select Name, IsDefaultAUService
harrymc
  • 498,455