Windows 11 is generally stable, but over time you may encounter issues such as Blue Screen of Death (BSOD), corrupted system files, Wi-Fi problems, Bluetooth connectivity issues, USB devices not being detected, Microsoft Store errors, audio problems, and slow system performance. Fortunately, Windows includes several powerful built-in commands that can help repair many of these problems without reinstalling the operating system.
Before running any command, open PowerShell as Administrator, copy and paste the command exactly as shown, press Enter, and wait for the process to complete. Some commands may take several minutes depending on your system.
In this guide, we'll explain the most useful Windows repair commands, what they do, and when you should use them.
Repair Hard Drive Errors and Bad Sectors
Use the following command:
chkdsk C: /f /r
What it does
Repairs file system errors.
Scans for bad sectors.
Attempts to recover readable data.
Fixes drive corruption.
When to use it
Blue Screen of Death errors.
Slow PC performance.
Disk read/write errors.
Unexpected system freezes.
Repair Corrupted Windows System Files
Use the following command:
DISM /Online /Cleanup-Image /RestoreHealth && sfc /scannow
What it does
Repairs the Windows component store.
Fixes corrupted system files.
Resolves many Windows Update problems.
Helps fix Blue Screen of Death errors caused by system corruption.
Improves overall Windows stability.
When to use it
Windows crashes frequently.
Apps fail to open.
Windows Update is not working.
Random system errors appear.
Fix Wi-Fi and Internet Connection Problems
Release the current IP address:
ipconfig /release
What it does
Releases the current IP address assigned by the router.
Helps resolve network conflicts.
Request a new IP address:
ipconfig /renew
What it does
Requests a fresh IP address from the router.
Restores internet connectivity issues caused by IP conflicts.
Clear DNS cache:
ipconfig /flushdns
What it does
Clears outdated DNS records.
Fixes website loading problems.
Reset Winsock:
netsh winsock reset
What it does
Repairs Windows network sockets.
Fixes many internet connectivity issues.
Reset TCP/IP stack:
netsh int ip reset
What it does
Resets TCP/IP settings to default.
Fixes network configuration corruption.
When to use these network commands
No internet connection.
DNS errors.
Limited connectivity.
Websites not loading.
Slow browsing issues.
Update Installed Applications
Use:
winget upgrade --all
What it does
Updates supported installed applications.
Installs latest security patches.
Improves application stability.
When to use it
Applications are outdated.
Software bugs need fixing.
Security updates are required.
Fix Microsoft Store Problems
Use:
wsreset.exe
What it does
Clears Microsoft Store cache.
Fixes Store loading issues.
Resolves download problems.
When to use it
Microsoft Store won't open.
Apps fail to download.
Store crashes repeatedly.
Reinstall and Repair Windows 11 Built-in Apps
Use:
Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
What it does
Reinstalls built-in Windows apps.
Repairs broken app registrations.
Fixes Start Menu and Store-related issues.
When to use it
Windows apps won't open.
Missing built-in applications.
Start Menu errors.
Check RAM and Memory Problems
Use:
mdsched.exe
What it does
Launches Windows Memory Diagnostic.
Checks RAM for hardware errors.
Detects memory instability.
When to use it
Random crashes.
BSOD errors.
System freezes.
Unexpected restarts.
Fix Bluetooth Issues
Use:
net stop bthserv && net start bthserv
What it does
Restarts Bluetooth services.
Fixes Bluetooth connectivity issues.
Resolves pairing problems.
Fix Audio and Sound Problems
Use:
net stop audiosrv && net start audiosrv
What it does
Restarts Windows Audio Service.
Fixes sound-related issues.
Restores audio functionality.
Fix USB, Mouse, Keyboard, Monitor, SSD, Speaker and Microphone Detection Issues
Use:
pnputil /scan-devices
What it does
Forces Windows to rescan hardware.
Detects newly connected devices.
Refreshes hardware configuration.
When to use it
USB not detected.
Mouse or keyboard not working.
Monitor not recognized.
SSD not appearing.
Microphone or speakers missing.
Final Recommendation
If you're facing multiple Windows issues and don't know where to start, open PowerShell as Administrator, copy and paste the following command, press Enter, and wait for the scan to complete:
DISM /Online /Cleanup-Image /RestoreHealth && sfc /scannow
This single command fixes many Windows problems including corrupted system files, update failures, application crashes, and various stability issues.
For hardware-related problems, use:
pnputil /scan-devices
Together, these built-in Windows repair tools can solve many common problems without requiring a full Windows reinstall.










