# 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

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FnVzb3HuwKgtNJOiJcnmv%2Fimage.png?alt=media\&token=e21eb2f0-3a3d-4257-a748-72abc0d4b344)

## Invoke Sandbox

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

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

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2Fq9aAq6ZN48uP4QJPBQMs%2Fimage.png?alt=media\&token=6b92d7e4-e68d-4a55-8077-42a5b8665f73)

{% 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

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FwuW2qIZsaRakJuRhO2yI%2Fimage.png?alt=media\&token=1a298ca4-7139-409e-ae94-c1564e8ecf82)

## Start OSDCloud or OSDCloudGUI

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

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2F2r2acLCeQPO2vjt2DDNW%2Fimage.png?alt=media\&token=af15d61b-23dd-482f-a95b-6454fa92b205)

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FEUDGL2VXMUi3cFQ9Rg41%2Fimage.png?alt=media\&token=d93d3a6e-5cf3-455c-9461-32384aa03331)

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FxqcCSJY8XBc7CkgjU45c%2Fimage.png?alt=media\&token=0a20c073-78d0-4a13-a5c4-ee2404e79c78)

## 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="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FGSD93uxIBfmzj34T6GP3%2Fimage.png?alt=media&#x26;token=a5455cf4-3b2c-494e-b5dc-873623491818" alt=""><figcaption></figcaption></figure>
