mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
* Fix Issue in #19 - Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created - Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button - Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch * Fix Formatting and Tweak Things - Fixed the formatting - Tweaked Write-Host's - Added newlines (`n) to space out the Statuses - Added progress indicators - Required "s and 's to be swapped so x/4 does not perform an operation * Slight Tweak
This commit is contained in:
parent
2bc8329f03
commit
4ab2a2790d
@ -197,6 +197,7 @@
|
|||||||
<Button Name="FeatureInstall" FontSize="14" Background="AliceBlue" Content="Install Features" Margin="20,5,20,0" Padding="10"/>
|
<Button Name="FeatureInstall" FontSize="14" Background="AliceBlue" Content="Install Features" Margin="20,5,20,0" Padding="10"/>
|
||||||
<Label Content="Fixes" FontSize="16"/>
|
<Label Content="Fixes" FontSize="16"/>
|
||||||
<Button Name="FixesUpdate" FontSize="14" Background="AliceBlue" Content="Reset Windows Update" Margin="20,5,20,0" Padding="10"/>
|
<Button Name="FixesUpdate" FontSize="14" Background="AliceBlue" Content="Reset Windows Update" Margin="20,5,20,0" Padding="10"/>
|
||||||
|
<Button Name="PanelDISM" FontSize="14" Background="AliceBlue" Content="System Corruption Scan" Margin="20,5,20,0" Padding="10"/>
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Background="#777777" SnapsToDevicePixels="True" Grid.Column="1" Margin="10,5">
|
<StackPanel Background="#777777" SnapsToDevicePixels="True" Grid.Column="1" Margin="10,5">
|
||||||
|
10
winutil.ps1
10
winutil.ps1
@ -1196,11 +1196,11 @@ $WPFFeatureInstall.Add_Click({
|
|||||||
})
|
})
|
||||||
|
|
||||||
$WPFPanelDISM.Add_Click({
|
$WPFPanelDISM.Add_Click({
|
||||||
Start-Process PowerShell -ArgumentList 'Write-Host "Chkdsk" -ForegroundColor Green; Chkdsk;
|
Start-Process PowerShell -ArgumentList "Write-Host '(1/4) Chkdsk' -ForegroundColor Green; Chkdsk /scan;
|
||||||
Write-Host "SFC - 1st scan" -ForegroundColor Green; sfc /scannow;
|
Write-Host '`n(2/4) SFC - 1st scan' -ForegroundColor Green; sfc /scannow;
|
||||||
Write-Host "DISM" -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth;
|
Write-Host '`n(3/4) DISM' -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth;
|
||||||
Write-Host "SFC - 2nd scan" -ForegroundColor Green; sfc /scannow;
|
Write-Host '`n(4/4) SFC - 2nd scan' -ForegroundColor Green; sfc /scannow;
|
||||||
Read-Host "Press Enter"' -verb runas
|
Read-Host '`nPress Enter to Continue'" -verb runas
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFPanelcontrol.Add_Click({
|
$WPFPanelcontrol.Add_Click({
|
||||||
|
Loading…
Reference in New Issue
Block a user