> 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/reference/task-sequence-variables.md).

# Task Sequence variables

OSD Toolkit is configured with task sequence variables. Only the first two are needed; everything else is optional.

## Required

| Variable                       | Value            | Description                                                                                    |
| ------------------------------ | ---------------- | ---------------------------------------------------------------------------------------------- |
| `SMSTSDownloadProgram`         | `OSDToolkit.exe` | Configuration Manager variable that hands downloads to OSD Toolkit                             |
| `OSDTKLicense`                 | License key      | See [Licensing](https://documentation.2pintsoftware.com/osd-toolkit/4.0/planning/licensing.md) |
| `SMSTSAllowTokenAuthURLForACP` | `true`           | Required on Enhanced HTTP sites only                                                           |

## Authentication and distribution points

| Variable           | Description                                                                  | Default |
| ------------------ | ---------------------------------------------------------------------------- | ------- |
| `OSDTKUseHttpsPkg` | Force PKI client-certificate paths even when a Network Access Account exists | `false` |
| `OSDTKUseCcmToken` | Force token-authentication paths                                             | `false` |
| `OSDTKProxy`       | Proxy URL to use for the distribution point, for example `http://proxy:8080` | none    |
| `OSDTKParallelism` | Files downloaded at the same time                                            | `5`     |

The OSD Toolkit 3 names (`BITSACPUSEHTTPSPKG`, `BITSACPUSECCMTOKEN`, `BITSACPPROXY`, `BITSACPPARALLELISM`) are still read when the new name is not set.

OSD Toolkit reads the Configuration Manager variables itself: the distribution point list, the ports, the Network Access Accounts, the media certificate and the distribution point token. Nothing needs to be set for those.

## Retry

These are Configuration Manager variables that OSD Toolkit honours.

| Variable                  | Description                                                                                             | Default |
| ------------------------- | ------------------------------------------------------------------------------------------------------- | ------- |
| `SMSTSDownloadRetryCount` | Retries per file and per distribution point before moving to the next distribution point                | `5`     |
| `SMSTSDownloadRetryDelay` | Seconds between retries. A transfer with no progress for delay × count seconds is cancelled and retried | `15`    |

{% hint style="info" %}
OSD Toolkit's default of 5 retries differs from the built-in downloader's default of 2.
{% endhint %}

## Transfer tuning

See [Tuning transfers](https://documentation.2pintsoftware.com/osd-toolkit/4.0/operations/tuning.md) for guidance.

| Variable                   | Description                                                                                                           | Default                            |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| `OSDTKProfile`             | `conservative`, `default` or `aggressive`                                                                             | `default`                          |
| `OSDTKPeerMode`            | `default`, `remote`, `local` or `none` (no peering)                                                                   | `default`                          |
| `OSDTKForeground`          | `false` treats the transfer as background traffic                                                                     | `true`                             |
| `OSDTKRedLeader`           | `true` fetches from the distribution point straight away while sharing with peers, instead of waiting for peers first | `false`                            |
| `OSDTKInjectCache`         | Add content to the BranchCache cache while downloading                                                                | Full OS `true`, Windows PE `false` |
| `OSDTKPeerMinSize`         | Files smaller than this, in bytes, are fetched from the distribution point without looking for peers                  | `1048576`                          |
| `OSDTKMaxParallelPccrr`    | Peer connections per file                                                                                             | profile                            |
| `OSDTKMaxConnections`      | Parallel HTTP streams to the distribution point                                                                       | profile                            |
| `OSDTKHttpTimeout`         | HTTP timeout in milliseconds                                                                                          | profile                            |
| `OSDTKPccrrTimeout`        | Peer request timeout in milliseconds                                                                                  | profile                            |
| `OSDTKLocalContentTimeout` | Local cache lookup timeout in milliseconds                                                                            | profile                            |
| `OSDTKPeerBlockMinTimeout` | Shortest time an unresponsive peer is ignored, in milliseconds                                                        | profile                            |
| `OSDTKPeerBlockMaxTimeout` | Longest time an unresponsive peer is ignored, in milliseconds                                                         | profile                            |

## Log files

| Variable        | Description                                       | Default                      |
| --------------- | ------------------------------------------------- | ---------------------------- |
| `OSDTKLogPath`  | Folder for `OSDToolkit.log`                       | The task sequence log folder |
| `OSDTKLogLevel` | `debug` adds the download engine's verbose output | none                         |

## Progress dialog

| Variable               | Description                                    | Default |
| ---------------------- | ---------------------------------------------- | ------- |
| `TSDisableProgressUI`  | `true` hides the task sequence progress dialog | `false` |
| `_SMSTSShowProgressUI` | `false` hides it as well                       | `true`  |

## Written by OSD Toolkit

| Variable           | Description                                                              |
| ------------------ | ------------------------------------------------------------------------ |
| `OSDTKPeerBytes`   | Bytes served by peers and the local cache, summed over the task sequence |
| `OSDTKSourceBytes` | Bytes served by distribution points, summed over the task sequence       |


---

# 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/reference/task-sequence-variables.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.
