> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/osd-toolkit/4.0/installation/adding-osd-toolkit-to-the-boot-image.md).

# Adding OSD Toolkit to the boot image

`OSDToolkit.exe` and `OSDToolkit-EnableBranchCache.ps1` must be in Windows PE before the first download. The 2Pint Boot Image Customizer adds them to a boot image for you.

## The Boot Image Customizer

The Boot Image Customizer is a Configuration Manager console extension that adds **Build 2Pint Boot Image** to the right-click menu of a boot image. It adds the following to the boot image's WIM:

* OSD Toolkit (`OSDToolkit.exe` and `OSDToolkit-EnableBranchCache.ps1`), copied to `Windows\System32`
* The 2Pint StifleR Client, set up as an automatic service in Windows PE
* Your StifleR client configuration (`.2psimport`), written to the Windows PE registry
* An optional root CA certificate (`.cer`)
* Windows PE optional components such as WMI, .NET, PowerShell and Scripting

When the build finishes, the tool can update the boot image on your distribution points.

## Choose a method

| Method                                 | Use it when                                                             | See                                                                                                                                                                                                                                                                                                                                                 |
| -------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The console extension                  | You work in the Configuration Manager console                           | [Installing the console extension](https://documentation.2pintsoftware.com/osd-toolkit/4.0/installation/adding-osd-toolkit-to-the-boot-image/installing-the-console-extension.md), then [Building a boot image](https://documentation.2pintsoftware.com/osd-toolkit/4.0/installation/adding-osd-toolkit-to-the-boot-image/building-a-boot-image.md) |
| `Update-CustomBootImage.ps1`           | You want to automate the build, or run it without the console extension | [Unattended builds](https://documentation.2pintsoftware.com/osd-toolkit/4.0/installation/adding-osd-toolkit-to-the-boot-image/unattended-builds.md)                                                                                                                                                                                                 |
| Copying the files in the task sequence | You want a first test without changing the boot image                   | Below                                                                                                                                                                                                                                                                                                                                               |

## Copying the files in the task sequence

Put both files in a package or on a share and copy them with a **Run Command Line** step at the start of the task sequence:

```
cmd.exe /c copy /y <source folder>\*.* X:\Windows\System32\
```

This needs no boot image change. The StifleR client is not added this way.


---

# 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://documentation.2pintsoftware.com/osd-toolkit/4.0/installation/adding-osd-toolkit-to-the-boot-image.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.
