This commit is contained in:
2022-06-30 17:50:07 -04:00
parent 0307d37d61
commit 991c2ac079
+2 -2
View File
@@ -9,10 +9,10 @@ If ( IsWindowsVersion -ge "6.2" )
$BeginDISMRun = $(Get-Date).AddSeconds(-1)
LogMsg "Beginning repair of Windows Component Store"
StartProcess "dism.exe" -ArgumentList "/online /cleanup-image /restorehealth" -Wait
Start-Process "dism.exe" -ArgumentList "/online /cleanup-image /restorehealth" -Wait
LogMsg "Beginning cleanup of superceded components in Windows Component Store"
StartProcess "dism.exe" -ArgumentList "/online /cleanup-image /startcomponentcleanup"
Start-Process "dism.exe" -ArgumentList "/online /cleanup-image /startcomponentcleanup"
$EndDISMRun = $(Get-Date).AddSeconds(1)