Fix Formatting and Tweak Things

- Fixed the formatting
 - Tweaked Write-Host's
   - Added newlines (`n) to space out the Statuses
   - Added progress indicators
     - Required "s and 's to be swapped so x/4 does not perform an operation
This commit is contained in:
Carterpersall 2022-05-18 11:14:25 -05:00
parent 0b59570b1c
commit 94058b9a10

View File

@ -1196,11 +1196,11 @@ $WPFFeatureInstall.Add_Click({
})
$WPFPanelDISM.Add_Click({
Start-Process PowerShell -ArgumentList 'Write-Host "Chkdsk" -ForegroundColor Green; Chkdsk;
Write-Host "SFC - 1st scan" -ForegroundColor Green; sfc /scannow;
Write-Host "DISM" -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth;
Write-Host "SFC - 2nd scan" -ForegroundColor Green; sfc /scannow;
Read-Host "Press Enter"' -verb runas
Start-Process PowerShell -ArgumentList "Write-Host '(1/4) Chkdsk' -ForegroundColor Green; Chkdsk /scan;
Write-Host '`n(2/4) SFC - 1st scan' -ForegroundColor Green; sfc /scannow;
Write-Host '`n(3/4) DISM' -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth;
Write-Host '`n(4/4) SFC - 2nd scan' -ForegroundColor Green; sfc /scannow;
Read-Host '`nPress Enter'" -verb runas
})
$WPFPanelcontrol.Add_Click({