> For the complete documentation index, see [llms.txt](https://www.osdcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.osdcloud.com/osdcloud-v1/osdcloud/setup/osdcloud-template/cumulative-updates.md).

# Cumulative Updates

OSD 23.5.15.1+ Updated May 15, 2023

I've added the ability to apply a Cumulative Update to an OSDCloud Template due to the Secure Boot vulnerability.  The next two links give some details on the issue

{% embed url="<https://support.microsoft.com/en-us/topic/kb5025885-how-to-manage-the-windows-boot-manager-revocations-for-secure-boot-changes-associated-with-cve-2023-24932-41a975df-beb2-40c1-99a3-b3ff139f832d>" %}

{% embed url="<https://learn.microsoft.com/en-us/windows/deployment/update/media-dynamic-update#update-winpe>" %}

## Download the Cumulative Update

Start by downloading the update from Microsoft Update Catalog and specifying the path to the downloaded update.  Start by downloading the x64 version at this link if you are using the ADK for Windows 11 version 22H2

{% embed url="<https://www.catalog.update.microsoft.com/Search.aspx?q=KB5026372>" %}

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2Fo4T3LI2GSKd4SV2355Pz%2Fimage.png?alt=media&amp;token=dac5aff4-45ca-47b1-bd53-42c0098cb4e1" alt=""><figcaption></figcaption></figure>

## Apply the Cumulative Update

Once you have the update downloaded, use the `CumulativeUpdate` parameter and supply the Path to the downloaded MSU.  In the example below I applied this in my default OSDCloud Template as this will be the one I use the most

1. Cumulative Update is applied
2. Updated Windows Information is displayed
3. Boot files are updated
4. DISM Component Cleanup is run

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FfhjNIryoKlQmFUjvmSRA%2Fimage.png?alt=media&amp;token=b4b1ca87-024e-4e81-95b9-b2eefd68d654" alt=""><figcaption></figcaption></figure>

## Apply the WRONG Cumulative Update

It's absolutely possible to apply the wrong Cumulative Update for WinPE, so make sure you understand that the Cumulative Update that you download must match your ADK.  So if you are using the ADK for Windows 11 version 22H2, you need the Windows 11 22H2 x64 Cumulative Update

1. Cumulative Update is applied
2. Updated Windows Information is displayed.  In this case, the UBR did not change
3. Warning is displayed that the UBR has not been changed.  The Boot files will not be updated
4. DISM Component Cleanup is run

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FlsbRVXGm43tw1zR1KKiU%2Fimage.png?alt=media&amp;token=b789f51d-10ae-4cf4-9e77-00dae5ee51e8" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
I'm not properly staffed to answer individual questions about which Cumulative Update you need for the ADK you have installed.  If this is not something you can resolve on your own, then you should probably wait for updated Media from Microsoft that already has the Secure Boot updates applied
{% endhint %}

## The Code

If you are interested in reviewing how this works, here is a snipped from the `New-OSDCloudTemplate` function

{% embed url="<https://github.com/OSDeploy/OSD/blob/a8547e4868a9ff99fe7880fea52158ee5ff7642f/Public/OSDCloudSetup/OSDCloudTemplate.ps1#L815>" %}

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FBFFaDJlYhGk86EsmR3BC%2Fimage.png?alt=media&amp;token=2fedf3a1-b854-467f-8a27-ab6ccce396a2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.osdcloud.com/osdcloud-v1/osdcloud/setup/osdcloud-template/cumulative-updates.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
