# Using OSDCloud with a Custom WIM

You can use a CustomImage with Start-OSDCloud by either specifying a URL, or placing the file on a USB or Network Share

## -ImageFileUrl

If you happen to have a URL for a WIM or an ESD, you can specify that using the **`-ImageFileUrl`** parameter.  Make sure you include **`-ImageIndex`**, otherwise it will default to 1

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVSV22dcsjKDdOxDA6n%2F-MZ0zix7ToueWwCxDOsC%2F-MZ12p94JwzoegwZwye8%2Fimage.png?alt=media\&token=abca2b54-44f6-410a-adc9-02ea2d9be5c9)

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVSV22dcsjKDdOxDA6n%2F-MZ0zix7ToueWwCxDOsC%2F-MZ145LSqQYsUI1tzU8v%2Fimage.png?alt=media\&token=6d04f531-e0af-4d1d-b278-e61ef2c8a9b4)

### Invoke-OSDCloud Variables

These are passed from **`Start-OSDCloud -ImageFileUrl`** to **`Invoke-OSDCloud`** for processing

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVSV22dcsjKDdOxDA6n%2F-MZ0zix7ToueWwCxDOsC%2F-MZ136XUplec5SgzcmDo%2Fimage.png?alt=media\&token=edafc6b9-2060-4bd9-9db1-8dd2fa88b5b9)

## -FindImageFile

If you have a Custom WIM or an ESD file, simply place it in a the following path (subdirectories are good) on a USB Drive or Network Share

```
<DriveLetter>:\OSDCloud\OS\*
```

OSDCloud will scan the above path on available drives for image files, as long as they are WIM or ESD Files

{% hint style="warning" %}
Only Drive Letters D-Z  except X: because that's WinPE (C: isn't checked because it will be wiped)
{% endhint %}

In my example below, I have mapped a Network Drive which contains the OSDCloud OS Path and 4 OS Images have been found.  After selecting an ImageFile, I will be prompted to select an ImageIndex

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVSV22dcsjKDdOxDA6n%2F-MYpIhdrGB_TF9Yt_v24%2F-MYpxddl_gOOYk6s2k2w%2Fimage.png?alt=media\&token=4615d813-aa91-4017-8778-a78c1ff5308b)

### Invoke-OSDCloud Variables

My example above will pass these variables to Invoke-OSDCloud for processing

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVSV22dcsjKDdOxDA6n%2F-MYpxpWF4UIMUEWaxxt2%2F-MYpyO_xUk5mmAGNZjcx%2Fimage.png?alt=media\&token=72d2a55a-61fa-41a8-8878-190689723a3a)
