> 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/osdeploy/invoke-osdeployhydration.md).

# Invoke-OSDeployHydration

Runs the complete OSDeploy hydration workflow end-to-end on a supported Windows 11 machine.

| Property | Value                                   |
| -------- | --------------------------------------- |
| Module   | OSDeploy                                |
| Platform | Windows 11 25H2 or 26H1 (amd64 / arm64) |
| Requires | PowerShell 7.6, Run as Administrator    |

## Description

Automates the full OSDeploy setup sequence:

1. Detects the running OS version and processor architecture.
2. Installs the matching Windows ADK, Git for Windows, Visual Studio Code, VS Code Insiders, and 7-Zip.
3. Downloads WinPE drivers for the detected architecture.
4. Builds a WinPE boot image named `Hydra`, using the newest available WinRE source when present, or falling back to the ADK WinPE when none is found.

Without `-Force`, interactive pickers (Out-GridView) are shown at each step. With `-Force`, the entire sequence runs non-interactively from start to finish.

## Syntax

```powershell
Invoke-OSDeployHydration [-Force] [-WhatIf] [-Confirm]
```

## Parameters

| Parameter | Type     | Required | Description                                                                                                    |
| --------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------- |
| `-Force`  | `Switch` | No       | Runs all steps non-interactively. Skips Out-GridView pickers and processes all matching sources automatically. |

## Examples

```powershell
# Run the full hydration workflow with interactive pickers at each step
Invoke-OSDeployHydration
```

```powershell
# Run the full hydration workflow non-interactively
Invoke-OSDeployHydration -Force
```


---

# 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:

```
GET https://www.osdeploy.com/powershell-modules/osdeploy/invoke-osdeployhydration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
