Skip to content

Commit 349889b

Browse files
authored
Minor format changes for Invoke-WPFSystemRepair.ps1 (#4100)
* Format changes * Update Invoke-WPFSystemRepair.ps1
1 parent c619f3a commit 349889b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

functions/public/Invoke-WPFSystemRepair.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)