WizardKit/.bin/Scripts/check_disk.ps1
2017-11-17 00:50:27 -07:00

17 lines
361 B
PowerShell

# WK-Check Disk
## Init ##
$wd = $(Split-Path $MyInvocation.MyCommand.Path)
pushd "$wd"
. .\init.ps1
clear
$host.UI.RawUI.WindowTitle = "WK Check Disk Tool"
## Schedule CHKDSK ##
write-host "$systemdrive (System Drive)"
start -wait "chkdsk" -argumentlist @("/f", "$systemdrive") -nonewwindow
## Done ##
popd
pause "Press Enter to reboot..."
restart-computer