wait for component cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user