mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-24 00:07:24 -05:00
format fixes
This commit is contained in:
parent
95d28ee25d
commit
3e416f5c14
@ -35,7 +35,7 @@ function Invoke-WPFSystemRepair {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "chkdsk Completed" -PercentComplete 100 -Completed
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "chkdsk Completed" -PercentComplete 100 -Completed
|
||||||
}
|
}
|
||||||
|
|
||||||
function Invoke-SFC {
|
function Invoke-SFC {
|
||||||
@ -45,7 +45,7 @@ function Invoke-WPFSystemRepair {
|
|||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
SFC /ScanNow - Performs a scan of the system files and fixes any corruption
|
SFC /ScanNow - Performs a scan of the system files and fixes any corruption
|
||||||
.NOTES
|
.NOTES
|
||||||
ErrorActionPreference is set locally within a script block & {...} to isolate their effects.
|
ErrorActionPreference is set locally within a script block & {...} to isolate their effects.
|
||||||
ErrorActionPreference suppresses false errors caused by sfc.exe output redirection.
|
ErrorActionPreference suppresses false errors caused by sfc.exe output redirection.
|
||||||
A bug in SFC output buffering causes progress updates to appear in chunks when redirecting output
|
A bug in SFC output buffering causes progress updates to appear in chunks when redirecting output
|
||||||
#>
|
#>
|
||||||
@ -103,7 +103,7 @@ function Invoke-WPFSystemRepair {
|
|||||||
}
|
}
|
||||||
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "DISM Completed" -PercentComplete 100 -Completed
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "DISM Completed" -PercentComplete 100 -Completed
|
||||||
}
|
}
|
||||||
|
|
||||||
$childProgressBarActivity = "Scanning for corruption"
|
$childProgressBarActivity = "Scanning for corruption"
|
||||||
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 0
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 0
|
||||||
# Step 1: Run chkdsk to fix disk and filesystem corruption before proceeding with system file repairs
|
# Step 1: Run chkdsk to fix disk and filesystem corruption before proceeding with system file repairs
|
||||||
@ -121,4 +121,4 @@ function Invoke-WPFSystemRepair {
|
|||||||
# Step 4: Run SFC again to ensure system files are repaired using the now-fixed system image
|
# Step 4: Run SFC again to ensure system files are repaired using the now-fixed system image
|
||||||
Invoke-SFC
|
Invoke-SFC
|
||||||
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 100 -Completed
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 100 -Completed
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user