diff --git a/Fix-WindowsHealth.ps1 b/Fix-WindowsHealth.ps1 index 4eea630..17a527d 100644 --- a/Fix-WindowsHealth.ps1 +++ b/Fix-WindowsHealth.ps1 @@ -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)