# Windows Media Download

```
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&#x26;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&#x26;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&#x26;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&#x26;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)
