> 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/whats-new-and-upgrades/upgrading-to-osd-toolkit-4.0.md).

# Upgrading to OSD Toolkit 4.0

The way Configuration Manager calls the downloader has not changed, so an existing task sequence needs few changes.

## What to change

| OSD Toolkit 3                                                          | OSD Toolkit 4.0                                                                 |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `SMSTSDownloadProgram` = `BITSACP.exe`                                 | `SMSTSDownloadProgram` = `OSDToolkit.exe`                                       |
| Boot image built with the WinPE Generator (BITS and BranchCache added) | A standard boot image built with the 2Pint Boot Image Customizer                |
| `BCEnabler.exe` steps in Windows PE                                    | Not needed. Remove them, or leave them: they do nothing for 4.0                 |
| `BCEnabler.exe Move` to carry the cache into the new OS                | `OSDToolkit.exe Prep C:` in Windows PE and `OSDToolkit.exe Cache` in the new OS |
| Turbo license in `2PintTurboLicense`                                   | The same key in `OSDTKLicense`                                                  |
| `HashGen.exe` and the Turbo steps                                      | Not needed                                                                      |

## Variables

The four OSD Toolkit 3 variables are still read when the new name is not set:

| OSD Toolkit 3        | OSD Toolkit 4.0    |
| -------------------- | ------------------ |
| `BITSACPUSEHTTPSPKG` | `OSDTKUseHttpsPkg` |
| `BITSACPUSECCMTOKEN` | `OSDTKUseCcmToken` |
| `BITSACPPROXY`       | `OSDTKProxy`       |
| `BITSACPPARALLELISM` | `OSDTKParallelism` |

## No longer available

| Feature                                                       | Note                                                                      |
| ------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `BITSPriority`                                                | BITS is not used                                                          |
| Turbo and `HashGen.exe`                                       | Every file is now downloaded the way Turbo downloaded large ones          |
| `/Upload` and `/UploadReply`                                  | Removed                                                                   |
| "Well connected" switching (`WellConnected2PS*`)              | Removed                                                                   |
| Registry progress under `HKLM\Software\2Pint Software\BITSTS` | Moved to `HKLM\Software\2Pint Software\OSD Toolkit\Jobs`, in a new format |
| `BITSACP*.log` files                                          | One log, `OSDToolkit.log`                                                 |

## Exit codes

OSD Toolkit 3 returned BITS error codes. OSD Toolkit 4.0 returns its own codes; see [Exit codes](https://documentation.2pintsoftware.com/osd-toolkit/4.0/reference/exit-codes.md). A task sequence that tests for a specific code, or sets `SMSTSDownloadAbortCode`, needs checking.


---

# 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/whats-new-and-upgrades/upgrading-to-osd-toolkit-4.0.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.
