Medium Operating Systems ✓ Solution Verified by Community (0+ upvotes)

How to fix error error-discarded in Windows 11

ERROR_DISCARDED = 157

65% success rate
👥 0+ users verified
📅 Updated: 2026-08-12
⏱️ 30 min read
Fix based on community reports and expert analysis. Last verified: 2026-08-12 · How we verify fixes
Error Codeerror-discarded
Affected SystemWindows 11 (Microsoft)
DifficultyMedium
Estimated Time30 min
Requires Admin Rights⚠️ Yes
Requires Reboot🔄 Yes

Solution Steps

  1. 1 Press Windows key + R, type 'appwiz.cpl', and press Enter to open Programs and Features. Look for the application that triggers the error. If it's a third-party program, try reinstalling it: right-click and select 'Uninstall', then download the latest version from the official website and install it. This ensures you have a clean copy of the software.
  2. 2 If the error occurs in multiple programs, it might be a system-wide memory issue. Press Windows key + X and select 'Windows Terminal (Admin)' or 'Command Prompt (Admin)'. Type 'chkdsk /f' and press Enter. You'll be prompted to schedule a disk check on restart. Type 'Y' and restart. This checks your hard drive for errors that could cause data to be discarded.
  3. 3 Update your device drivers, especially graphics and chipset drivers. Press Windows key + X and select 'Device Manager'. Expand categories, right-click on devices, and select 'Update driver'. Choose 'Search automatically for drivers'. Outdated drivers can cause memory mismanagement.
  4. 4 Check for Windows updates. Press Windows key + I to open Settings, go to 'Windows Update', and click 'Check for updates'. Install any pending updates, as they often include fixes for memory management bugs.
  5. 5 If the error persists, run the Windows Memory Diagnostic tool. Press Windows key + R, type 'mdsched.exe', and press Enter. Choose 'Restart now and check for problems'. This will test your RAM for errors. If errors are found, you may need to replace the RAM module.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Still having issues?

Describe your exact problem to Error Buddy and get a personalized fix in seconds.

🛠️ Try Error Buddy — It's Free