System Health and Repair Guide
Windows 11 System Health and Repair Guide
Section titled “Windows 11 System Health and Repair Guide”This guide provides step-by-step instructions and terminal commands to diagnose and resolve system stability issues on Windows 11.
Table of Contents
Section titled “Table of Contents”- Basic System Checks
- Disk Health and Repair
- System File Integrity
- Windows Update Troubleshooting
- Driver Management
- Performance Optimization
- Boot Configuration Repair
- Memory Diagnostics
- Application Troubleshooting
- Advanced Recovery Options
Basic System Checks
Section titled “Basic System Checks”Check System Health Report
Section titled “Check System Health Report”Generate a comprehensive system health report to identify issues:
perfmon /reportRun System Assessment Tool
Section titled “Run System Assessment Tool”Assess overall system performance:
winsat formalView Event Logs for Critical Errors
Section titled “View Event Logs for Critical Errors”Get-EventLog -LogName System -EntryType Error -Newest 20 | Format-Table -AutoSizeCheck Running Services
Section titled “Check Running Services”Get-Service | Where-Object {$_.Status -eq "Running"} | Sort-Object DisplayNameDisk Health and Repair
Section titled “Disk Health and Repair”Run Check Disk Utility
Section titled “Run Check Disk Utility”Scan and repair disk errors (replace C: with relevant drive letter):
chkdsk C: /f /rParameters:
/f- Fixes errors on the disk/r- Locates bad sectors and recovers readable information
Analyze Disk Usage
Section titled “Analyze Disk Usage”Get-VolumeDefragment and Optimize Drives
Section titled “Defragment and Optimize Drives”defrag C: /A /VParameters:
/A- Analyze only/V- Verbose output
To perform actual optimization:
defrag C: /O /VCheck Disk Health (SMART Status)
Section titled “Check Disk Health (SMART Status)”wmic diskdrive get status, caption, sizeSystem File Integrity
Section titled “System File Integrity”Run System File Checker
Section titled “Run System File Checker”Scan and repair corrupted Windows system files:
sfc /scannowRun DISM Health Restoration
Section titled “Run DISM Health Restoration”Repair Windows image:
DISM /Online /Cleanup-Image /CheckHealthFor more detailed scanning:
DISM /Online /Cleanup-Image /ScanHealthTo restore health:
DISM /Online /Cleanup-Image /RestoreHealthVerify Component Store
Section titled “Verify Component Store”Check the Windows Component Store for corruption:
DISM /Online /Cleanup-Image /AnalyzeComponentStoreReduce component store size:
DISM /Online /Cleanup-Image /StartComponentCleanupFor deeper cleanup (may take longer):
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBaseWindows Update Troubleshooting
Section titled “Windows Update Troubleshooting”Reset Windows Update Components
Section titled “Reset Windows Update Components”net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.old
net start wuauservnet start cryptSvcnet start bitsnet start msiserverRun Windows Update Troubleshooter from Command Line
Section titled “Run Windows Update Troubleshooter from Command Line”msdt.exe /id WindowsUpdateDiagnosticCheck for Updates Manually
Section titled “Check for Updates Manually”UsoClient StartScanUsoClient StartDownloadUsoClient StartInstallDriver Management
Section titled “Driver Management”List All Drivers
Section titled “List All Drivers”pnputil /enum-driversCheck for Driver Issues
Section titled “Check for Driver Issues”Get-PnpDevice | Group-Object Status | Format-Table Name, CountUpdate Drivers via PowerShell (requires admin rights)
Section titled “Update Drivers via PowerShell (requires admin rights)”winget upgrade --allExport Driver List
Section titled “Export Driver List”pnputil /export-drivers /path C:\DriversPerformance Optimization
Section titled “Performance Optimization”Clean Temporary Files
Section titled “Clean Temporary Files”Remove-Item $env:TEMP\* -Recurse -Force -ErrorAction SilentlyContinueDisable Unnecessary Startup Programs
Section titled “Disable Unnecessary Startup Programs”Get-CimInstance Win32_StartupCommand | Select-Object Name, Location, Command | Format-Table -AutoSizeTo manage startup items graphically:
msconfigAnalyze System Resource Usage
Section titled “Analyze System Resource Usage”Get-Process | Sort-Object -Property CPU -Descending | Select-Object -First 10Clear DNS Cache
Section titled “Clear DNS Cache”ipconfig /flushdnsReset Network Stack
Section titled “Reset Network Stack”netsh winsock resetnetsh int ip resetBoot Configuration Repair
Section titled “Boot Configuration Repair”Rebuild Boot Configuration Data
Section titled “Rebuild Boot Configuration Data”bootrec /FixMbrbootrec /FixBootbootrec /ScanOsbootrec /RebuildBcdRepair Windows Boot Loader
Section titled “Repair Windows Boot Loader”bcdboot C:\Windows /s C: /f ALLCheck Boot Configuration
Section titled “Check Boot Configuration”bcdedit /enumMemory Diagnostics
Section titled “Memory Diagnostics”Run Windows Memory Diagnostic Tool
Section titled “Run Windows Memory Diagnostic Tool”mdsched.exeCheck Memory Usage
Section titled “Check Memory Usage”Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object FreePhysicalMemory, TotalVisibleMemorySizeClear Memory Standby List (frees up cached memory)
Section titled “Clear Memory Standby List (frees up cached memory)”Clear-StandbyListApplication Troubleshooting
Section titled “Application Troubleshooting”Repair Microsoft Store Apps
Section titled “Repair Microsoft Store Apps”Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}Reset Microsoft Store
Section titled “Reset Microsoft Store”wsreset.exeRepair Installed Programs
Section titled “Repair Installed Programs”appwiz.cplCheck for App Conflicts
Section titled “Check for App Conflicts”Get-AppxPackage -PackageTypeFilter Bundle | Format-Table Name, Status, InstallLocationAdvanced Recovery Options
Section titled “Advanced Recovery Options”Create System Restore Point
Section titled “Create System Restore Point”Checkpoint-Computer -Description "Manual Restore Point" -RestorePointType "MODIFY_SETTINGS"Access Recovery Environment
Section titled “Access Recovery Environment”shutdown /r /o /f /t 00Run System Maintenance Troubleshooter
Section titled “Run System Maintenance Troubleshooter”msdt.exe /id MaintenanceDiagnosticReset PC While Keeping Files
Section titled “Reset PC While Keeping Files”systemreset --keepmyfilesRepair System with In-Place Upgrade
Section titled “Repair System with In-Place Upgrade”For this option, you’ll need to:
- Download the Windows 11 installation media
- Run setup.exe from the media
- Choose “Upgrade this PC now”
- Select “Keep personal files and apps”
Additional Tips for Improved System Performance
Section titled “Additional Tips for Improved System Performance”- Regularly update Windows, drivers, and applications
- Uninstall unused applications
- Disable visual effects (System Properties > Advanced > Performance Settings)
- Ensure adequate disk space is available (at least 15% free space)
- Check for malware using Windows Security or third-party tools
- Monitor system temperature to prevent thermal throttling
- Consider hardware upgrades if system consistently struggles with performance
These commands and procedures should help diagnose and resolve most Windows 11 stability issues. Always ensure you have backed up important data before performing system repairs.