> 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/troubleshooting/overview.md).

# Overview

Start with `OSDToolkit.log` and `smsts.log` side by side. `smsts.log` shows `Using download program ...`, the command line, and the code OSD Toolkit returned.

## The task sequence uses its built-in downloader

`smsts.log` shows a non-zero return code followed by the default download process.

| Return code | Cause                                        | Fix                                                                                                                                                   |
| ----------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1010        | No valid license                             | Read the `Not licensed:` line in `OSDToolkit.log`. Set `OSDTKLicense` before the first download                                                       |
| 1005        | No distribution point could list the package | On Enhanced HTTP sites set `SMSTSAllowTokenAuthURLForACP=true`. Otherwise check the Network Access Account and connectivity to the distribution point |
| 1006        | A file failed on every distribution point    | Check the file named in the log on the distribution point                                                                                             |
| 1004        | The download could not be set up             | Read the error in `OSDToolkit.log`                                                                                                                    |
| 1000        | Unexpected error                             | Send `OSDToolkit.log` to support                                                                                                                      |

If `smsts.log` never mentions the download program, `SMSTSDownloadProgram` is not set at that point of the task sequence, or `OSDToolkit.exe` is not in the boot image.

## Nothing comes from peers

| Cause                                                | Check                                                                                                                     |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| The Cache step is missing or ran too late            | It must run right after **Setup Windows and ConfigMgr**, while `C:\_SMSTaskSequence` exists                               |
| The Prep step is missing                             | Without it the Cache step has no `OSDToolkit.exe` in the new OS                                                           |
| The earlier device has nothing cached                | On that device run `netsh branchcache show status all`; the local cache should hold gigabytes                             |
| The devices were deployed at the same time           | Expected, see [Peering during deployments](https://documentation.2pintsoftware.com/osd-toolkit/4.0/operations/peering.md) |
| The devices are on different networks                | Peers are found on the local network only                                                                                 |
| `OSDTKRedLeader=true` or `OSDTKPeerMode=none` is set | Remove the variable                                                                                                       |

## Windows PE runs out of memory

Devices with 4 GB can fail while applying the image. Use 6 GB or more, do not use `OSDTKProfile=aggressive` below 8 GB, and check the `Memory at start` line in the log.

## The Prep step fails

The argument must be the drive of the new OS as seen from Windows PE, and Prep must run after **Apply Operating System**. A wrong drive letter returns a Windows error code.

## The Windows PE log is gone

It was on the RAM drive. Set `OSDTKLogPath`; see [Log files](https://documentation.2pintsoftware.com/osd-toolkit/4.0/monitoring-and-reporting/log-files.md).


---

# 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/troubleshooting/overview.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.
