Skip to content

Commit 8551a13

Browse files
authored
Fix #4164
1 parent a306640 commit 8551a13

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

functions/public/Invoke-WPFSystemRepair.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ function Invoke-WPFSystemRepair {
55
Checks for disk failure using Chkdsk
66
77
.DESCRIPTION
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
8+
1. SFC - scans protected system files for corruption and fixes them
9+
2. DISM - Repair a corrupted Windows operating system image
1110
#>
1211

13-
Start-Process cmd.exe -ArgumentList "/c chkdsk /scan /perf" -NoNewWindow -Wait
1412
Start-Process cmd.exe -ArgumentList "/c sfc /scannow" -NoNewWindow -Wait
1513
Start-Process cmd.exe -ArgumentList "/c dism /online /cleanup-image /restorehealth" -NoNewWindow -Wait
1614

0 commit comments

Comments
 (0)