Skip to content

Commit

Permalink
Create disk_verefication.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
suchsoak authored Oct 23, 2023
1 parent 3b6135a commit ee04fe1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions powershell/disk_verefication.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
e$hd = @"
___ _ _ _ __ _ _ _
| \ (_) ___| |__ __ __ ___ _ _ (_) / _|(_) __ __ _ | |_ (_) ___ _ _
| |) || |(_-/| / / \ V // -_)| '_|| || _|| |/ _|/ _` || _|| |/ _ \| ' \
|___/ |_|/__/|_\_\ \_/ \___||_| |_||_| |_|\__|\__/_| \__||_|\___/|_||_|
Github: https://github.com/schsoak
BY: ~#M?x
"@

Write-Host $hd

if ($tru){
Write-Host "[*] Sfc /ScanNow 1/4"
Start-Sleep 2 > $null
Sfc /ScanNow
clear
Write-Host "[*] dism /online /cleanup-image /scanhealth 2/5"
Start-Sleep 2 > $null
dism /online /cleanup-image /scanhealth
clear
Write-Host "[*] dism /online /cleanup-image /restorehealth 3/5"
Start-Sleep 2 > $null
dism /online /cleanup-image /restorehealth
clear
Write-Host "[*] dism /online /cleanup-image /restorehealth 4/5"
Start-Sleep 2 > $null
dism /Online /Cleanup-Image /CheckHealth
clear
Write-Host "[*] Chkdsk 5/5"
Start-Sleep 2 > $null
chkdsk
clear
Write-Host "✔ Verification completed!"
}else {
Write-Host
Write-Host " ⚠ Verification failed"
}

0 comments on commit ee04fe1

Please sign in to comment.