> 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/guide/requirements/powershell-modules.md).

# PowerShell Modules

Install the PowerShell modules required for current OSDeploy and OSDCloud workflows.

Install `OSDeploy` and `OSDCloud` from PowerShell Gallery on the OSDeploy PC.

{% hint style="info" %}
Install `OSD` only when a workflow requires legacy OSD or OSDCloud v1 commands. Use the `OSDCloud` module for current OSDCloud deployments.
{% endhint %}

## Install the Modules

{% stepper %}
{% step %}

### Confirm the Requirements

Run the commands on a Windows 11 OSDeploy PC from an elevated PowerShell 7.6 or later session. Confirm that the current session uses PowerShell Core:

```powershell
$PSVersionTable | Select-Object PSEdition, PSVersion
```

Confirm that `PSEdition` is `Core` and `PSVersion` is `7.6` or later before continuing.
{% endstep %}

{% step %}

### Install the Required Modules

Install the latest `OSDeploy` and `OSDCloud` releases from PowerShell Gallery:

```powershell
Install-Module -Name OSDeploy -Force -SkipPublisherCheck
Install-Module -Name OSDCloud -Force -SkipPublisherCheck
```

`OSDeploy` creates and maintains OSDeploy Core and builds OSDCloud boot images on the OSDeploy PC. `OSDCloud` provides the current deployment commands used in Windows PE. The commands also update an existing installation when PowerShell Gallery contains a newer release.
{% endstep %}

{% step %}

### Install the Optional Legacy Module

Install `OSD` only when a deployment workflow requires commands that are not included in the current `OSDCloud` module:

```powershell
Install-Module -Name OSD -Force -SkipPublisherCheck
```

{% endstep %}
{% endstepper %}

See the detailed guides for [Get-OSDeployModulePath](/guide/cmdlets/get-osdeploymodulepath.md) and [Get-OSDeployModuleVersion](/guide/cmdlets/get-osdeploymoduleversion.md), or use their compact [path](/command-reference/osdeploy/get-osdeploymodulepath.md) and [version](/command-reference/osdeploy/get-osdeploymoduleversion.md) command references. Complete [Community Registration](/guide/registration.md) before directly running `Update-OSDeployBootISO`, `Update-OSDeployBootProfilePreview`, `Update-OSDeployCore`, `Update-OSDeployCoreDrivers`, `Update-OSDeployCoreESD`, or `Update-OSDeployCoreRE`. Core updates invoked immediately by `Invoke-OSDeployHydration` use its limited caller exception.


---

# 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/guide/requirements/powershell-modules.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.
