wait for component cleanup

This commit is contained in:
2022-07-01 13:14:34 -04:00
parent 95d6c4bd7e
commit ab21fb14f3
+1 -1
View File
@@ -12,7 +12,7 @@ If ( IsWindowsVersion -ge "6.2" )
Start-Process "dism.exe" -ArgumentList "/online /cleanup-image /restorehealth" -Wait
LogMsg "Beginning cleanup of superceded components in Windows Component Store"
Start-Process "dism.exe" -ArgumentList "/online /cleanup-image /startcomponentcleanup"
Start-Process "dism.exe" -ArgumentList "/online /cleanup-image /startcomponentcleanup" -Wait
$EndDISMRun = $(Get-Date).AddSeconds(1)