Invoke-OSDeployHydration
Runs the complete OSDeploy workstation hydration workflow.
Module
OSDeploy
Platform
Windows 11 25H2 build 26200 or later (amd64 / arm64)
Requires
PowerShell 7.6, curl.exe, OSDCloud, Administrator rights
Output
Mixed child-command output: PSCustomObject, FileInfo, DirectoryInfo, and String
Syntax
Invoke-OSDeployHydration [-Force] [-WhatIf] [-Confirm]Parameters
-Force
Switch
No
Bypass hydration-level ShouldContinue prompts, install offered components, and forward force behavior to ESD and driver updates. It is not passed to CoreRE, Build, or Hyper-V creation.
-WhatIf
Switch
No
Preview delegated ShouldProcess operations. It does not suppress ShouldContinue prompts unless -Force is also used.
-Confirm
Switch
No
Flow confirmation preference into delegated commands.
Examples
Invoke-OSDeployHydrationInvoke-OSDeployHydration -ForceWorkflow
The command validates the workstation, displays the planned workflow, and uses console Yes/No prompts unless -Force is supplied. It then:
Tests and optionally installs ADK 25H2, 7-Zip, Git, VS Code, VS Code Insiders, and Hyper-V.
Runs
Update-OSDeployCoreESD -Architecture $arch.Runs
Update-OSDeployCoreRE -Architecture $arch.Runs
Update-OSDeployCoreDrivers -Architecture $arch.Runs
Build-OSDeployBoot -Auto.On a physical host, optionally creates a Hyper-V VM when Hyper-V and the new ISO are available.
Hydration is the immediate-caller exception for child OSDeploy license gates. It does not use Out-GridView for its own confirmation prompts, and -Force does not guarantee that all delegated selectors or child confirmations are suppressed.
Last updated
Was this helpful?

