Optimize your SSD in Windows 11 (Run TRIM & Enable Scheduled Optimization)

Quick steps to run TRIM manually, confirm TRIM is enabled, and ensure Windows 11 runs scheduled optimization so your SSD stays fast and healthy.

What the video covers

Short, practical steps for using Windows 11 built-in tools to run TRIM and enable scheduled optimization on an SSD.

Watch the video on YouTube

Step-by-step instructions

  1. Open the Optimize Drives tool
    Press Windows + S, search for "Defragment and Optimize Drives" (Optimize Drives), and open it.
  2. Run TRIM manually
    In Optimize Drives, select your SSD from the list and click Optimize to run TRIM immediately.
  3. Enable scheduled optimization
    In the Optimize Drives window click Change settings (or the equivalent option) and make sure Run on a schedule is checked so Windows performs regular maintenance on the SSD.
  4. Open an elevated terminal to check TRIM status
    Press Windows + X and open Terminal (Admin) or an elevated PowerShell/Command Prompt, accept any UAC prompt, then run: fsutil behavior query DisableDeleteNotify
  5. Interpret and enable TRIM if needed
    If the result shows DisableDeleteNotify = 0 TRIM is enabled. If it shows 1, enable TRIM by running: fsutil behavior set DisableDeleteNotify 0
  6. Verify changes
    Re-run the query command to confirm DisableDeleteNotify = 0 and confirm scheduled optimization remains enabled in the Optimize Drives window.

Watch the video

Video thumbnail for Optimize your SSD in Windows 11 (Run TRIM & Enable Scheduled Optimization) Play tutorial

Watch on YouTube

Why it matters

TRIM helps the OS tell an SSD which blocks of data are no longer in use so the drive can manage wear and maintain performance. Running TRIM and keeping scheduled optimization on prevents long-term slowdowns and preserves drive health.

Check your result

After running the manual optimization and the fsutil check, you should see that TRIM is enabled (DisableDeleteNotify = 0) and the Optimize Drives tool shows your SSD can be optimized. Your system should feel responsive and disk activity related to garbage collection should be reduced over time.

Troubleshooting

If the fsutil command returns an error, run the command in an elevated Terminal/PowerShell with administrator privileges. If scheduled optimization cannot be enabled, reboot and try again; check for third‑party disk utilities that might be managing the drive and disable their automatic optimization. If TRIM remains disabled on a hardware RAID or certain controller settings, consult your motherboard or controller documentation for SSD passthrough/NCQ/trim support.