Skip to content

What does Patch Manager "Patch Now" actually do on Windows instance?

0

Hi all

When I run AWS Systems Manager Patch Manager's "Patch Now" operation on Windows instance, my understanding is it executes "AWS-RunPatchBaseline" document with the "AWS-WindowsPredefinedPatchBaseline-OS-Applications" patch baseline.

My question is, what does it do actually? The logs don't provide that level of detail.

Thanks.

asked a year ago392 views

1 Answer
0
Accepted Answer

When you run "Patch Now" on a Windows instance, it executes the AWS-RunPatchBaseline document to perform patching operations. Here's what happens during this process:

  1. The operation first determines which patch baseline to use. If your Windows instance is associated with a patch group, it uses the patch baseline specified for that group. If not, it uses the default patch baseline for Windows Server (which could be the AWS-WindowsPredefinedPatchBaseline-OS-Applications or a custom baseline you've set as default).

  2. The AWS-RunPatchBaseline document downloads and invokes a PowerShell module on your Windows instance.

  3. This PowerShell module downloads a snapshot of the applicable patch baseline from Systems Manager.

  4. The patch baseline snapshot contains a list of approved patches compiled by querying the patch baseline against a Windows Server Update Services (WSUS) server.

  5. This list of approved patches is passed to the Windows Update API, which controls the downloading and installation of the patches.

  6. The Windows Update API determines which of the approved patches are applicable to your instance and installs them as needed. Only the latest available version of a KB will be installed.

  7. All Group Policy settings for Windows Update are respected during this process, including any settings directing instances to a WSUS server.

  8. After patches are installed, the instance is rebooted (unless you specified the NoReboot option in the Patch Now settings).

The patching logs are stored on the Windows instance in the %PROGRAMDATA%\Amazon\PatchBaselineOperations\Logs folder if you need more detailed information about the patching operation.
Sources
How patches are installed - AWS Systems Manager
SSM Command document for patching: AWS-RunPatchBaseline - AWS Systems Manager
Patching managed nodes on demand - AWS Systems Manager

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.