File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ function Invoke-WPFSystemRepair {
22 <#
33 . SYNOPSIS
44 Checks for system corruption using SFC, and DISM
5+ Checks for disk failure using Chkdsk
56
67 . DESCRIPTION
7- 1. SFC - Fixes system file corruption, and fixes DISM if it was corrupted
8- 2. DISM - Fixes system image corruption, and fixes SFC's system image if it was corrupted
9- 3. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure
8+ 1. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure
9+ 2. SFC - scans protected system files for corruption and fixes them
10+ 3. DISM - Repair a corrupted Windows operating system image
1011 #>
11- Start-Process cmd.exe - ArgumentList " /c chkdsk.exe /scan /perf" - NoNewWindow - Wait
12+
13+ Start-Process cmd.exe - ArgumentList " /c chkdsk /scan /perf" - NoNewWindow - Wait
1214 Start-Process cmd.exe - ArgumentList " /c sfc /scannow" - NoNewWindow - Wait
1315 Start-Process cmd.exe - ArgumentList " /c dism /online /cleanup-image /restorehealth" - NoNewWindow - Wait
1416
You can’t perform that action at this time.
0 commit comments