Check For Corrupted Files Windows 11 May 2026

$choice = Read-Host "`nEnter choice (1-4)"

progressBar.Style = ProgressBarStyle.Blocks; EnableControls(true); check for corrupted files windows 11

if %choice%==1 goto SFC if %choice%==2 goto DISM if %choice%==3 goto FULLREPAIR if %choice%==4 goto CHKDSK if %choice%==5 goto REPORT if %choice%==6 exit $choice = Read-Host "`nEnter choice (1-4)" progressBar

await Task.Run(() => try Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.Arguments = $"/c command"; process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.RedirectStandardError = true; process.StartInfo.CreateNoWindow = true; pause > nul goto MENU private async Task

:DISM cls echo Running DISM Health Scan... dism /online /cleanup-image /scanhealth echo. echo Press any key to return to menu... pause > nul goto MENU

private async Task CheckDriverIntegrity() EnableControls(false); txtOutput.Clear(); lblStatus.Text = "Checking driver signatures..."; await Task.Run(() => try Process process = new Process(); process.StartInfo.FileName = "powershell.exe"; process.StartInfo.Arguments = "-Command \"Get-WindowsDriver -Online catch (Exception ex) Invoke(new Action(() => txtOutput.Text = $"Error checking drivers: ex.Message")); ); EnableControls(true);

private async void BtnCheckDrivers_Click(object sender, EventArgs e) await CheckDriverIntegrity();