> 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/integration/osdcloud-ipu/windows-media-download.md).

# Windows Media Download

The OSD module now includes a function to build upgrade media (including the install.wim) which can be pulled into MDT or ConfigMgr or other processes.

```
New-OSDCloudOSWimFile -OSName 'Windows 11 23H2 x64' -OSEdition Pro -OSLanguage en-us -OSActivation Retail
```

This function will reach out and download the appropriate esd file, then build the media sources

Available Parameters:

* \[String] OSName:  Windows Version & Arch
* \[String] OSEdition
* \[String] OSLanguage
* \[String] OSActivation

The command will download the esd file to c:\OSDCloud\OS\\($OSName), and then build the media in c:\OSDCloud\IPU\Media\\($OSName)

First example below is downloading Windows 11 23H2 ARM64.  On this device, I had already downloaded the esd file before, so the function saw it was there, did a SHA1 HASH check, confirmed it was good, and continued to build the media folders and content

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FVXiHqq493sjkQnqqbi7h%2Fimage.png?alt=media&amp;token=b45c80fb-356f-41d4-9962-34515d2ab1f4" alt=""><figcaption></figcaption></figure>

Second example is grabbing Windows 11 23H2 x64.

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FsYiljd8JPgq9OxYdnS8N%2Fimage.png?alt=media&amp;token=afaab427-6128-435f-bceb-ab30b6aa467e" alt=""><figcaption></figcaption></figure>

Here you can see the media below:

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FtaSuveWZnSuwrZPrveQ7%2Fimage.png?alt=media&amp;token=f4ed10d8-5320-4a03-b0d1-f4e74ac612c3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2Fwe9V29QSf9Qj9HjBZyNo%2Fimage.png?alt=media&amp;token=9ac5b638-2683-4324-bd96-be34989acee3" alt=""><figcaption></figcaption></figure>

Then in ConfigMgr, when I import the install.wim for ARM64, it looks pretty good:\
![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FC49ZrdEijaiSfG8yJrp4%2Fimage.png?alt=media\&token=d20493a6-7a25-4f53-831c-1f96409b7c42)


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.osdcloud.com/osdcloud-v1/integration/osdcloud-ipu/windows-media-download.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
