Introduces an option to retain downloaded ESD files

Adds a new configuration parameter and UI toggle to control whether downloaded Windows ESD files are removed after application. Updates the download process to check for and reuse existing ESD files that match the latest metadata filename, saving bandwidth and time on subsequent executions. Integrates the conditional deletion logic into the shared cleanup module.
This commit is contained in:
rbalsleyMSFT
2026-03-03 16:47:31 -08:00
parent f09c98906a
commit 7f10811c05
6 changed files with 64 additions and 18 deletions
@@ -141,6 +141,7 @@ function Get-GeneralDefaults {
RemoveFFU = $false
RemoveApps = $false
RemoveUpdates = $false
RemoveDownloadedESD = $true
# Hyper-V Settings Defaults
VMHostIPAddress = ""
DiskSizeGB = 50