Changed USB build functionality

This commit is contained in:
rbalsleyMSFT
2023-09-12 13:12:48 -07:00
parent d6c46ff304
commit 131d7920bf
3 changed files with 189 additions and 77 deletions
@@ -60,8 +60,8 @@ Remove-Variable DisplayVersion
Remove-Variable Office
reg unload "HKLM\FFU"
#This prevents Critical Process Died errors you can have during deployment of the FFU - may not happen during capture from WinPE, but adding here to be consistent with VHDX capture
WriteLog 'Sleep 15 seconds to allow registry to completely unload'
Start-sleep 15
WriteLog 'Sleep 60 seconds to allow registry to completely unload'
Start-sleep 60
Start-Process -FilePath dism.exe -ArgumentList $dismArgs -Wait -PassThru -ErrorAction Stop | Out-Null
#Copy DISM log to Host