How to Enable or Disable TRIM Support for Solid State Drives (SSD) in Windows 10
The TRIM command is essential to maintain the performance of solid state drives (SSDs) at an optimal level over the lifetime of the drive. TRIM functions by actively deleting invalid data from the SSD’s memory cells to ensure that write operations perform at full speed. Since a memory block must be erased before it can be re-programmed, TRIM improves performance by pro-actively erasing pages containing invalid data, allowing the SSD to write new data without first having to perform a time-consuming erase command.
EXAMPLE:
- SSD pages contain no data.
- User writes data to SSD pages.
- User deletes some data. Pages are marked as "not in use" by the OS, but data remains on SSD.
- TRIM command tells SSD controller that pages contain invalid data. Pages with invalid data are cleaned.
- Data is written back to SSD memory cells. The invalid data had been cleaned and data is able to be written to the pages at full speed.
TRIM support for SSDs is enabled by default, and is recommended to always keep TRIM support enabled. If disabled, you risk the SSD getting defragged instead of optimized (TRIM).
See also: The real and complete story - Does Windows defragment your SSD? | SCOTT HANSELMAN
This tutorial will show you how to check the current status of TRIM support for SSDs, and to enable or disable TRIM support for NTFS and ReFS file systems for all users in Windows 10.
You must be signed in as an administrator to be able to verify, enable, or disable TRIM support.
TRIM Support Requirements:
- Windows 7, Windows 8, Windows 8.1, or Windows 10
- BIOS/UEFI storage controller set to AHCI/SATA mode
Here's How:
1 Open an elevated command prompt.
2 Do step 3 (status), step 4 (NTFS), and/or step 5 (ReFS) below for what you want to do.
A) Copy and paste the command below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshots below)
fsutil behavior query disabledeletenotify
TRIM Support Results Description NTFS DisableDeleteNotify = 0 (Disabled) TRIM support enabled for SSDs with NTFS NTFS DisableDeleteNotify = 1 (Enabled) TRIM support disabled for SSDs with NTFS NTFS DisableDeleteNotify is not currently set TRIM support for SSDs with NTFS is not currently set, but will automatically be enabled if a SSD with NTFS is connected. ReFS DisableDeleteNotify = 0 (Disabled) TRIM support enabled for SSDs with ReFS ReFS DisableDeleteNotify = 1 (Enabled) TRIM support disabled for SSDs with ReFS ReFS DisableDeleteNotify is not currently set TRIM support for SSDs with ReFS is not currently set, but will automatically be enabled if a SSD with ReFS is connected.
A) Copy and paste the command you want to use below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshot below)
(Enable TRIM support for SSDs with NTFS)
fsutil behavior set disabledeletenotify NTFS 0
OR
(Disable TRIM support for SSDs with NTFS)
fsutil behavior set disabledeletenotify NTFS 1
A) Copy and paste the command you want to use below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshot below)
(Enable TRIM support for SSDs with ReFS )
fsutil behavior set disabledeletenotify ReFS 0
OR
(Disable TRIM support for SSDs with ReFS )
fsutil behavior set disabledeletenotify ReFS 1
6 When finished, you can close the elevated command prompt if you like.
That's it,
Shawn
Related Tutorials
- How to Check and Enable or Disable SSD TRIM Support in Windows 7 and Windows 8
- How to Optimize and Defragment Drives in Windows 10
- How to Enable or Disable to Format with ReFS File System in Windows 8.1 and Windows 10