> For the complete documentation index, see [llms.txt](https://www.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.osdeploy.com/command-reference/osd/new-osdcloudoswimfile.md).

# New-OSDCloudOSWimFile

Builds Windows setup media content for an OSDCloud feature update.

| Property | Value                 |
| -------- | --------------------- |
| Module   | OSD                   |
| Platform | WinPE (amd64 / arm64) |

## Description

Resolves the target operating system image, determines the correct image index for the requested edition, downloads or locates the matching ESD, expands the setup content, and optionally creates an ISO file.

## Syntax

### Default (Default)

```powershell
New-OSDCloudOSWimFile [-OSName <String>] [-OSEdition <String>] [-OSLanguage <String>] [-OSActivation <String>]
 [-CreateISO] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Legacy

```powershell
New-OSDCloudOSWimFile [-OSEdition <String>] [-OSLanguage <String>] [-OSActivation <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Parameters

| Parameter       | Type              | Required | Description                                                                       |
| --------------- | ----------------- | -------- | --------------------------------------------------------------------------------- |
| `-OSName`       | `String`          | False    | Specifies the Windows release and architecture to build media for.                |
| `-OSEdition`    | `String`          | False    | Specifies the Windows edition to package into the setup media.                    |
| `-OSLanguage`   | `String`          | False    | Specifies the language and culture of the Windows image.                          |
| `-OSActivation` | `String`          | False    | Specifies whether the image should target Retail or Volume activation.            |
| `-CreateISO`    | `SwitchParameter` | False    | Creates an ISO file from the generated setup content after the image is prepared. |

## Examples

### Example

```powershell
New-OSDCloudOSWimFile -OSName 'Windows 11 25H2 x64' -OSEdition Pro -OSLanguage en-us -OSActivation Retail -CreateISO
Prepares the Windows 11 25H2 x64 Pro retail media and builds an ISO file.
```

## Related

* <https://github.com/OSDeploy/OSD/tree/master/docs>
* <https://learn.microsoft.com/en-us/windows/deployment/upgrade/log-files>
* <https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-command-line-options?view=windows-11>


---

# 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.osdeploy.com/command-reference/osd/new-osdcloudoswimfile.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.
