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 /report
Run System Assessment Tool
Section titled “Run System Assessment Tool”Assess overall system performance:
winsat formal
View Event Logs for Critical Errors
Section titled “View Event Logs for Critical Errors”Get-EventLog -LogName System -EntryType Error -Newest 20 | Format-Table -AutoSize
Check Running Services
Section titled “Check Running Services”Get-Service | Where-Object {$_.Status -eq "Running"} | Sort-Object DisplayName
Disk 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 /r
Parameters:
/f
- Fixes errors on the disk/r
- Locates bad sectors and recovers readable information
Analyze Disk Usage
Section titled “Analyze Disk Usage”Get-Volume
Defragment and Optimize Drives
Section titled “Defragment and Optimize Drives”defrag C: /A /V
Parameters:
/A
- Analyze only/V
- Verbose output
To perform actual optimization:
defrag C: /O /V
Check Disk Health (SMART Status)
Section titled “Check Disk Health (SMART Status)”wmic diskdrive get status, caption, size
System 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 /scannow
Run DISM Health Restoration
Section titled “Run DISM Health Restoration”Repair Windows image:
DISM /Online /Cleanup-Image /CheckHealth
For more detailed scanning:
DISM /Online /Cleanup-Image /ScanHealth
To restore health:
DISM /Online /Cleanup-Image /RestoreHealth
Verify Component Store
Section titled “Verify Component Store”Check the Windows Component Store for corruption:
DISM /Online /Cleanup-Image /AnalyzeComponentStore
Reduce component store size:
DISM /Online /Cleanup-Image /StartComponentCleanup
For deeper cleanup (may take longer):
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Windows 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 msiserver
Run Windows Update Troubleshooter from Command Line
Section titled “Run Windows Update Troubleshooter from Command Line”msdt.exe /id WindowsUpdateDiagnostic
Check for Updates Manually
Section titled “Check for Updates Manually”UsoClient StartScanUsoClient StartDownloadUsoClient StartInstall
Driver Management
Section titled “Driver Management”List All Drivers
Section titled “List All Drivers”pnputil /enum-drivers
Check for Driver Issues
Section titled “Check for Driver Issues”Get-PnpDevice | Group-Object Status | Format-Table Name, Count
Update Drivers via PowerShell (requires admin rights)
Section titled “Update Drivers via PowerShell (requires admin rights)”winget upgrade --all
Export Driver List
Section titled “Export Driver List”pnputil /export-drivers /path C:\Drivers
Performance Optimization
Section titled “Performance Optimization”Clean Temporary Files
Section titled “Clean Temporary Files”Remove-Item $env:TEMP\* -Recurse -Force -ErrorAction SilentlyContinue
Disable Unnecessary Startup Programs
Section titled “Disable Unnecessary Startup Programs”Get-CimInstance Win32_StartupCommand | Select-Object Name, Location, Command | Format-Table -AutoSize
To manage startup items graphically:
msconfig
Analyze System Resource Usage
Section titled “Analyze System Resource Usage”Get-Process | Sort-Object -Property CPU -Descending | Select-Object -First 10
Clear DNS Cache
Section titled “Clear DNS Cache”ipconfig /flushdns
Reset Network Stack
Section titled “Reset Network Stack”netsh winsock resetnetsh int ip reset
Boot Configuration Repair
Section titled “Boot Configuration Repair”Rebuild Boot Configuration Data
Section titled “Rebuild Boot Configuration Data”bootrec /FixMbrbootrec /FixBootbootrec /ScanOsbootrec /RebuildBcd
Repair Windows Boot Loader
Section titled “Repair Windows Boot Loader”bcdboot C:\Windows /s C: /f ALL
Check Boot Configuration
Section titled “Check Boot Configuration”bcdedit /enum
Memory Diagnostics
Section titled “Memory Diagnostics”Run Windows Memory Diagnostic Tool
Section titled “Run Windows Memory Diagnostic Tool”mdsched.exe
Check Memory Usage
Section titled “Check Memory Usage”Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object FreePhysicalMemory, TotalVisibleMemorySize
Clear Memory Standby List (frees up cached memory)
Section titled “Clear Memory Standby List (frees up cached memory)”Clear-StandbyList
Application 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.exe
Repair Installed Programs
Section titled “Repair Installed Programs”appwiz.cpl
Check for App Conflicts
Section titled “Check for App Conflicts”Get-AppxPackage -PackageTypeFilter Bundle | Format-Table Name, Status, InstallLocation
Advanced 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 00
Run System Maintenance Troubleshooter
Section titled “Run System Maintenance Troubleshooter”msdt.exe /id MaintenanceDiagnostic
Reset PC While Keeping Files
Section titled “Reset PC While Keeping Files”systemreset --keepmyfiles
Repair 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.