> For the complete documentation index, see [llms.txt](https://www.osdcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.osdcloud.com/osdcloud-v1/osdcloud-sandbox/sandbox/winpe-usage.md).

# WinPE Usage

**OSDCloud Sandbox** prepares your WinPE environment to run **OSDCloud** to image your device

## Requirements

You can use OSDCloud Sandbox on any WinPE that has PowerShell Package added from the Microsoft ADK, so this should work on most MDT and CM Boot Images.  The following example is using a simple WinPE created with the Microsoft ADK (and PowerShell)

* Windows 10 or Windows 11 WinPE (ADK, MDT, or CM)
* Microsoft ADK PowerShell added to WinPE
* WinPE Drivers for your device (Network and Disk)
* Internet connection

## Boot to WinPE

If you booted to a USB, you can remove it at this time

![](/files/hCw7CVoD4yPDSjUsJs56)

## Invoke Sandbox

In a Command Prompt, type the following command and press enter

```
powershell iex(irm sandbox.osdcloud.com)
```

![](/files/aHIHI6eRqoV4GsQOzvkm)

{% hint style="warning" %}
If you receive an error, you may have to add the following command line in PowerShell

`[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}`
{% endhint %}

## Watch and Learn

Within a minute, PowerShell Gallery will be enabled, and **OSDCloud** requirements (OSD Module and Curl) will be set

![](/files/AQ2Nf2IVvxtlnFy7UW4r)

## Start OSDCloud or OSDCloudGUI

At this point, start PowerShell and run **`Start-OSDCloud`** in the new PowerShell window

![](/files/mmkobjCA8JjVzkx2qC9C)

![](/files/RWjl8YSvMCPWCucphea7)

![](/files/dyNBmPtyQaAwpwdq4doF)

## MDT LiteTouchPE\_x64.iso

Here's another example using an MDT LiteTouchPE\_x64.iso.  I exited the BDD Welcome Wizard to a  Command Prompt and used the following commands

```batch
powershell iex (irm sandbox.osdcloud.com)
start powershell
```

<figure><img src="/files/yenOGulEvC011HjjfDrp" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.osdcloud.com/osdcloud-v1/osdcloud-sandbox/sandbox/winpe-usage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
