# Build Process

The next few screenshots will detail the steps that are needed to make OSDCloud work

### Initialize

1. Start writing the PowerShell Transcript
2. Mirror the ADK Media directory to the OSDCloud Template
3. Copy the ADK winpe.wim to the OSDCloud Template boot.wim
4. Mount the boot.wim
5. Mount the WinPE registry to get the WinPE Info

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FjRO0AWQp6a3YSKkC08VZ%2Fimage.png?alt=media&#x26;token=4ac00a20-d9ce-428c-a362-e069f9e3295c" alt=""><figcaption></figcaption></figure>

### ADK Packages

1. Inject ADK Packages for PowerShell functionality
2. Save the Windows Image

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FEvh23fUWlZJBeYRZanv4%2Fimage.png?alt=media&#x26;token=13148651-e910-4080-af96-403643a34035" alt=""><figcaption></figcaption></figure>

### Tweaks

1. Copy some helper files from the running OS
2. If MDT is installed, add the Dart Configuration
3. If Microsoft Dart is installed, inject the Tools
4. Save the Windows Image
5. Set the WinPE PowerShell ExecutionPolicy
6. Enable PowerShell Gallery support
7. Remove winpeshl.ini if it is present
8. Change some settings for a better Command Prompt experience

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FAIYbRkwIvvTGzC4hH0Hz%2Fimage.png?alt=media&#x26;token=ba8a8455-41b6-46bc-9828-b0bdd3550814" alt=""><figcaption></figcaption></figure>

### Packages

1. Display the installed Windows Packages

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FPQE0lDo41ucvhfoJk06R%2Fimage.png?alt=media&#x26;token=0c531e47-962d-4ae4-8bf9-3469bb068cfa" alt=""><figcaption></figcaption></figure>

### Complete

1. Dismount the Windows Image
2. Export the Boot.wim to compress the file
3. Create empty configuration directories
4. Create the ISOs
5. Set the OSDCloud Template to the new path
6. Stop writing the PowerShell Transcript

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FLY7stsYNT63tXZ1hBLMq%2Fimage.png?alt=media&#x26;token=84d328c5-d843-433d-9aed-6a8e8b5f503c" alt=""><figcaption></figcaption></figure>
