private void EnableControls(bool enable) btnQuickScan.Enabled = enable; btnFullScan.Enabled = enable; btnRepairFiles.Enabled = enable; btnCheckDrivers.Enabled = enable;
:FULLREPAIR cls echo Running Complete Scan and Repair... echo Step 1: DISM Restore Health dism /online /cleanup-image /restorehealth echo. echo Step 2: SFC Verification sfc /scannow echo. echo Step 3: Component Store Cleanup dism /online /cleanup-image /startcomponentcleanup echo. echo Repair completed! pause > nul goto MENU
progressBar.Style = ProgressBarStyle.Blocks; EnableControls(true);
elseif ($sfcResult -match "Windows Resource Protection found corrupt files") Write-ColorOutput "⚠ SFC: Corrupted files detected!" "Red" # Extract corrupted file list $corruptPattern = "Cannot repair member file \[l:.*?\]`"([^`"]+)\`"" $matches = [regex]::Matches($sfcResult, $corruptPattern) foreach ($match in $matches) $results.CorruptedFiles += $match.Groups[1].Value
private async void BtnFullScan_Click(object sender, EventArgs e) await RunSystemCommand("dism /online /cleanup-image /scanhealth", "DISM Health Scan");
# File: AdvancedFileCorruptionChecker.ps1 # Windows 11 Advanced File Corruption Checker with Reporting param( [switch]$QuickScan, [switch]$FullScan, [switch]$Repair, [switch]$GenerateReport, [string]$ReportPath = "$env:USERPROFILE\Desktop\CorruptionReport.html" )
