mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-05 23:40:10 +00:00
Added DISM command and button to tool (#19)
* Added DISM command and button to tool * Added additional scans and colours to make it clear when each scan type starts Co-authored-by: Chris Titus <dfm.titus@gmail.com>
This commit is contained in:
12
winutil.ps1
12
winutil.ps1
@@ -1146,8 +1146,16 @@ $WPFFeatureInstall.Add_Click({
|
|||||||
[System.Windows.MessageBox]::Show($Messageboxbody,$MessageboxTitle,$ButtonType,$MessageIcon)
|
[System.Windows.MessageBox]::Show($Messageboxbody,$MessageboxTitle,$ButtonType,$MessageIcon)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$WPFPanelDISM.Add_Click({
|
||||||
|
Start-Process PowerShell -ArgumentList 'Write-Host "Chkdsk" -ForegroundColor Green; Chkdsk;
|
||||||
|
Write-Host "SFC - 1st scan" -ForegroundColor Green; sfc /scannow;
|
||||||
|
Write-Host "DISM" -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth;
|
||||||
|
Write-Host "SFC - 2nd scan" -ForegroundColor Green; sfc /scannow;
|
||||||
|
Read-Host "Press Enter"' -verb runas
|
||||||
|
})
|
||||||
|
|
||||||
$WPFPanelcontrol.Add_Click({
|
$WPFPanelcontrol.Add_Click({
|
||||||
cmd /c control
|
cmd /c control
|
||||||
})
|
})
|
||||||
$WPFPanelnetwork.Add_Click({
|
$WPFPanelnetwork.Add_Click({
|
||||||
cmd /c ncpa.cpl
|
cmd /c ncpa.cpl
|
||||||
@@ -1271,6 +1279,8 @@ foreach ($service in $services) {
|
|||||||
Stop-Service -Name wuauserv
|
Stop-Service -Name wuauserv
|
||||||
Stop-Service -Name appidsvc
|
Stop-Service -Name appidsvc
|
||||||
Stop-Service -Name cryptsvc
|
Stop-Service -Name cryptsvc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Write-Host "2. Remove QMGR Data file..."
|
Write-Host "2. Remove QMGR Data file..."
|
||||||
Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue
|
Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue
|
||||||
|
|||||||
Reference in New Issue
Block a user