1
0
mirror of https://github.com/ChrisTitusTech/winutil.git synced 2025-04-04 18:22:09 +00:00
winutil/functions/public/Invoke-WPFPanelDISM.ps1
2023-10-04 10:08:10 -05:00

13 lines
506 B
PowerShell

function Invoke-WPFPanelDISM {
<#
.DESCRIPTION
PlaceHolder
#>
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 to Continue'" -verb runas
}