Enable TRIM on Windows SSD: Step-by-Step Guide
In this article
Yes, you can enable TRIM on a Windows SSD. TRIM is usually on by default, but if it is disabled, you can turn it back on with a single command in Command Prompt or PowerShell. TRIM tells the SSD which data blocks are no longer in use so it can clean them up, keeping write speeds steady and extending the drive's life. Before you start, make sure you are signed in as an administrator and that your drive is actually an SSD (not a hard drive).
What You'll Need
- A Windows PC with an SSD installed.
- Administrator rights on your account.
- Command Prompt or PowerShell (both are built into Windows).
Step-by-Step
- Check that TRIM is currently enabled. Open Command Prompt as administrator: click Start, type cmd, right-click Command Prompt, and choose Run as administrator. In the window, type
fsutil behavior query DisableDeleteNotifyand press Enter. If you seeDisableDeleteNotify = 0, TRIM is already enabled and you can stop here. If it says1, TRIM is disabled and you should continue to the next step. (Menu labels can differ slightly by Windows version and region, but the command is the same.) - Enable TRIM. In the same administrator Command Prompt, type
fsutil behavior set DisableDeleteNotify 0and press Enter. You should see a confirmation message. This tells Windows to send TRIM commands to the SSD. - Verify the change. Run the query command again:
fsutil behavior query DisableDeleteNotify. It should now returnDisableDeleteNotify = 0. That means TRIM is active. - Confirm your drive is an SSD. TRIM only helps SSDs; running it on a hard drive does nothing. Open Settings > System > Storage, click Advanced storage settings, then Disks & volumes. Select your drive and look at the Media type line. If it says SSD, you are set. If it says HDD, TRIM is not relevant for that drive.
- Make sure the SSD is using the right driver. Windows needs the standard AHCI or NVMe driver for TRIM to work. Open Device Manager (right-click Start and choose Device Manager), expand Storage controllers, and check that your controller is listed as Standard SATA AHCI Controller or an NVMe controller. If you see a third-party RAID driver, TRIM may not pass through; in that case, check your motherboard or laptop maker's support pages for guidance before changing anything.
- Run Windows Optimize (optional but recommended). Windows automatically sends TRIM commands during its scheduled optimization. To run it manually, open Start, type Defragment and Optimize Drives, and open it. Select your SSD and click Optimize. For an SSD, this performs a TRIM operation, not a traditional defrag. Do not use third-party defrag tools on an SSD.
Common Mistakes
- Running the command without administrator rights. The
fsutilcommand will fail or show an access error if Command Prompt is not elevated. Always choose Run as administrator. - Confusing the value.
DisableDeleteNotify = 0means TRIM is enabled.1means it is disabled. It is easy to read it backwards. - Defragmenting an SSD. Manual defragmentation is unnecessary and adds wear. Use the built-in Optimize tool, which runs TRIM on SSDs.
- Expecting TRIM to fix a failing drive. TRIM maintains performance; it does not repair bad sectors or restore lost data.
- Changing storage controller drivers without a backup. Switching drivers can sometimes prevent Windows from booting. Create a restore point or backup first.
Tips
- Leave the scheduled optimization on. Windows runs it weekly by default and handles TRIM automatically.
- Keep your SSD firmware and Windows updates current; both can affect how TRIM is handled.
- If you use a RAID setup, check that your RAID controller supports TRIM passthrough. Not all do.
- You do not need to run the
fsutilcommand regularly. Set it once and let Windows manage the rest. - After a clean Windows install, TRIM is enabled by default on SSDs, so check before changing anything.
Troubleshooting
- The command returns an error. Close the window and reopen Command Prompt as administrator. If it still fails, try PowerShell as administrator and run the same
fsutilcommand. - TRIM stays disabled after setting it to 0. Restart the PC and check again. If it reverts, a third-party storage tool or a group policy may be overriding it; check any disk management software you have installed.
- The drive is not recognized as an SSD. Update the storage controller driver through Device Manager or your PC maker's support site. If the drive is connected through a USB enclosure, TRIM may not pass through; internal SATA or NVMe connections are best.
- Optimize says "needs optimization" but nothing happens. Make sure the drive is not full and that no error appears in Event Viewer under Windows Logs > System. A nearly full SSD can slow down TRIM.
- You suspect TRIM is not working. There is no simple built-in test. The query command is the standard check. If performance drops severely, back up your data and consider checking the drive's health with the manufacturer's official tool.
Frequently Asked Questions
Is TRIM enabled by default on Windows?
Yes, Windows enables TRIM automatically when it detects an SSD. The query command is the quickest way to confirm.
Does enabling TRIM delete my files?
No. TRIM only marks blocks as free for the SSD to clean up later. It does not erase user data on its own.
Can I enable TRIM on an external USB SSD?
It depends on the USB enclosure and its bridge chip. Many do not pass TRIM commands through. Internal SATA or NVMe connections are the reliable option.
Should I defragment my SSD after enabling TRIM?
No. Defragmentation is for hard drives. Use the built-in Optimize tool, which runs TRIM on SSDs instead.
Does TRIM work on NVMe drives?
Yes, NVMe drives support TRIM, and Windows sends the equivalent command automatically when TRIM is enabled.
Will enabling TRIM improve my SSD speed?
It helps maintain write performance over time by keeping free blocks ready. It will not make a new drive faster than its rated speed.