OSDeploy PSModule and site pages are currently in preview until mid-September
For the complete documentation index, see llms.txt. This page is also available as Markdown.

OSDeploy Core: Removing WinRE Images

Review and remove imported Windows Recovery Environment images from the OSDeploy Core cache.

Update-OSDeployCoreRE creates a Windows Recovery Environment source for each imported Windows OS source. Remove obsolete WinRE imports to recover space or remove old source choices from Build-OSDeployBoot:

C:\ProgramData\OSDeployCore\cache\windows-re

Understand the WinRE Source Directory

Each source normally contains:

<source-name>\
|-- .core\
|-- .temp\
|-- .wim\
|   `-- winre.wim
`-- properties.json

The source name matches the paired directory under cache\windows-os. OSDeploy reads properties.json and .wim\winre.wim to populate WinRE source selection.

Deleting a WinRE source does not delete its paired Windows OS source, cached Enterprise ESD, or completed boot media.

Review Imported WinRE Images

Close active import and build operations, then open an elevated PowerShell 7 session.

List valid WinRE sources and approximate size:

Entries with HasWinRE set to False are incomplete and are not usable build sources.

Select WinRE Images to Remove

Keep the newest known-working source for each required architecture.

Preview and Remove

Preview the deletion:

Confirm that every selected path is a direct child of C:\ProgramData\OSDeployCore\cache\windows-re.

Remove the selected sources:

Do not remove the windows-re root.

Verify Build Source Selection

Run an interactive preview of the build source choices:

Select a retained WinRE source and review the displayed build configuration. -WhatIf prevents the build-directory operation, but initialization and selection can still update local state.

Restore a WinRE Source

Recreate a removed source from the verified Enterprise ESD:

Restore one architecture when required:

If the ESD is absent, run Update-OSDeployCoreESD first. The import ensures that matching Windows OS and WinRE source directories exist.

See OSDeployCore Cache for the paired source layout and Convert ESD to Windows RE for the extraction workflow.

Last updated

Was this helpful?