> 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/powershell-modules/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.osdeploy.com/powershell-modules/osd/new-osdcloudoswimfile.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
