# OSDCloud

The **Sandbox** is a way test OSDCloud without using a dedicated OSDCloud WinPE.  It is a PowerShell that will setup all of the OSDCloud prerequesties, although you will need to have PowerShell working in your WinPE

## Sandbox URL

The **OSDCloud Sandbox** can be accessed at this URL

```
sandbox.osdcloud.com
```

If you open this URL in your web browser, you will be redirected to the following RAW link on GitHub where you can review the script

{% embed url="<https://raw.githubusercontent.com/OSDeploy/OSD/master/cloud/subdomains/sandbox.osdcloud.com.ps1>" %}

## Invoke-RestMethod

You can return the script in PowerShell using this cmdlet

```powershell
Invoke-RestMethod sandbox.osdcloud.com
```

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FVhw2SHLis2GHYnCypZcu%2Fimage.png?alt=media&#x26;token=77baf14b-b5b7-4c40-b555-deae0a68376c" alt=""><figcaption></figcaption></figure>

## Invoke-Expression

This cmdlet is used to run a PowerShell script.  Understanding that, you can use any of the following one-liners to execute the OSDCloud Sandbox PowerShell script in WinPE

```powershell
Invoke-Expression (Invoke-RestMethod 'https://sandbox.osdcloud.com')
Invoke-Expression (Invoke-RestMethod sandbox.osdcloud.com)
iex (irm sandbox.osdcloud.com)
```
