> 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/building-a-boot-image.md).

# Building a boot image

## What you need

The files you want to add: the StifleR Client, OSD Toolkit or both.

* **The OSD Toolkit folder:** the extracted OSD Toolkit release zip, with `OSDToolkit.exe` and `OSDToolkit-EnableBranchCache.ps1`.
* **The StifleR Client source:** a `.zip`, an `.msi`, an extracted folder or the folder of an installed StifleR Client.
* **The StifleR client configuration export** (`.2psimport`). Without it, the client cannot reach your StifleR server.
* Optionally, a root CA certificate (`.cer`).

## Build the boot image

1. In the console, go to **Software Library** > **Operating Systems** > **Boot Images**.
2. Right-click the boot image you want to customize and select **Build 2Pint Boot Image**.
3. Accept the UAC prompt. The **2Pint Software - ConfigMgr Boot Image Customizer** window opens, with the boot image's WIM path already filled in.
4. Fill in or check the fields:

   | Section                                | Field                               | What to enter                                                                                                                                                           |
   | -------------------------------------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | Target Boot Image / WIM                | Boot Image                          | The boot image you right-clicked. Select another one to build it instead. Its distribution points are updated after the build.                                          |
   |                                        | Source WIM Path                     | Filled in from the boot image. Change it only to target a different WIM; the tool then asks whether to update the boot image's distribution points.                     |
   |                                        | Temporary Mount Directory           | An empty local folder for mounting the WIM. Default: `%TEMP%\BootWim`.                                                                                                  |
   | StifleR Client Payload & Configuration | StifleR Client Source Folder        | The folder with the StifleR Client `.zip`, `.msi` or extracted files. If more than one is present, the `.zip` is used first, then the `.msi`, then the extracted files. |
   |                                        | StifleR Config Export (.2psimport)  | Your client configuration export.                                                                                                                                       |
   | Tools & Certificates                   | OSD Toolkit Folder                  | The folder with `OSDToolkit.exe` and `OSDToolkit-EnableBranchCache.ps1`. Only these two files are copied.                                                               |
   |                                        | Optional Root CA Certificate (.cer) | A root certificate to include. Leave it empty if you do not need one.                                                                                                   |
   | WinPE Optional Components              | ADK WinPE\_OCs Directory            | Found automatically when the ADK is installed. Browse to it only if it is empty.                                                                                        |
   |                                        | Component check boxes               | The components marked `*` are recommended for StifleR and PowerShell.                                                                                                   |
5. Check the options on the right:
   * **Create .bak backup copy of WIM before modifying:** copies the original WIM to `<wim>.bak` the first time. An existing `.bak` is never overwritten, so it always holds the original, uncustomized WIM.
   * **Automatically clean up prior orphaned/failed mounts:** cleans up mounts left behind by an earlier failed run.
   * **Trigger ConfigMgr Distribution Point update on completion:** updates the boot image on its distribution points after the build.
6. Optionally, select **Save Settings** to keep your paths and choices for the next run. Settings are kept per boot image.
7. Select **Build & Update Boot Image**.

The tool first checks every field. If something is missing or wrong, it lists the problems and does not start. If something works but not fully, for example no `.2psimport`, it asks whether to build anyway. Progress shows in the **Execution Log** pane. A build usually takes a few minutes, mostly for the optional components.

If something fails while the WIM is mounted, the tool discards the changes. The source WIM stays as it was.

## How the .2psimport is applied

The tool writes the `.2psimport` straight into the boot image's registry, under `HKLM\SOFTWARE\2Pint Software\StifleR\Client`, the same way the StifleR Config Editor imports it.

Unlike the Config Editor, the tool does not check the values against the StifleR client's settings, and does not encrypt password settings. Export the `.2psimport` from the Config Editor to be sure the values are valid.

## Running it again

You can run the tool on the same boot image again, for example after a new StifleR Client release. The `.bak` file keeps the original WIM from the first run.

## Restoring the original boot image

1. Copy `<wim>.bak` over the WIM.
2. In the console, right-click the boot image and select **Update Distribution Points**.


---

# 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/building-a-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.
