Devices Check, Enable or Disable TRIM Support for SSD Drives in Windows 11

  • Thread starter Thread starter Brink
  • Start date Published: Start date Updated Updated:
  • Tags Tags
    drive

Defrag_banner.webp

This tutorial will show you how to check the current status of TRIM support for SSD drives, and to enable or disable TRIM support on SSD drives with NTFS and ReFS file systems for all users in Windows 10 and Windows 11.

When you delete a file on a SSD or NVMe drive, Windows sends a TRIM command to the drive to notify the drive of pages which no longer contain valid data. The SSD will then erase those pages in the background.

The TRIM command is essential to maintain the performance of SSD and NVMe drives 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-used, 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.

For a file deletion operation, the operating system will mark the file's sectors as free for new data, then send a TRIM command to the drive. After trimming, the drive will not preserve any contents of the block when writing new data to a page of flash memory, resulting in less write amplification (fewer writes), higher write throughput (no need for a read-erase-modify sequence), thus increasing drive life.

Delete notifications (also known as trim or unmap) is a feature that notifies the underlying storage device of clusters that have been freed due to a file delete operation. In addition:
  • For systems using ReFS v2, trim is disabled by default.
  • For systems using ReFS v1, trim is enabled by default.
  • For systems using NTFS, trim is enabled by default unless an administrator disables it.
  • If your hard disk drive or SAN reports that it doesn't support trim, then your hard disk drive and SANs don't get trim notifications.
  • Enabling or disabling doesn't require a restart.
It is recommended to always keep TRIM support enabled for SSD and NVMe drives.

If you are trying to recover deleted data from a SSD or NVMe drive, then temporarily disabling TRIM support may help allow you to recover the data before TRIM clears it permanently.

References:



Contents





Option One

Check Current Status of TRIM Support


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below into Terminal, and press Enter. (see screenshots below)

fsutil behavior query disabledeletenotify

3 You can now check the output to see if TRIM support is currently enable or disabled.

TRIM Support Output​
Description​
NTFS DisableDeleteNotify = 0TRIM support enabled for SSDs with NTFS
NTFS DisableDeleteNotify = 1TRIM support disabled for SSDs with NTFS
NTFS DisableDeleteNotify is not currently setTRIM support for SSDs with NTFS is not currently set, but will automatically be enabled if a SSD with NTFS is connected.
ReFS DisableDeleteNotify = 0TRIM support enabled for SSDs with ReFS
ReFS DisableDeleteNotify = 1TRIM support disabled for SSDs with ReFS
ReFS DisableDeleteNotify is not currently setTRIM support for SSDs with ReFS is not currently set, but will automatically be enabled if a SSD with ReFS is connected.

query_disabledeletenotify-0.webp

query_disabledeletenotify-1.webp





Option Two

Enable TRIM Support


This is the default setting.

You must be signed in as an administrator to use this option.


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below for what you want into Terminal (Admin), and press Enter. (see screenshot below)

(Enable TRIM support for SSD with NTFS file system)
fsutil behavior set disabledeletenotify 0

OR​

fsutil behavior set disabledeletenotify NTFS 0

AND/OR

(Enable TRIM support for SSD with ReFS file system)
fsutil behavior set disabledeletenotify ReFS 0

set_disabledeletenotify-0.webp




Option Three

Disable TRIM Support


You must be signed in as an administrator to use this option.


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below for what you want into Terminal (Admin), and press Enter. (see screenshot below)

(Disable TRIM support for SSD with NTFS file system)
fsutil behavior set disabledeletenotify 1

OR​

fsutil behavior set disabledeletenotify NTFS 1

AND/OR

(Disable TRIM support for SSD with ReFS file system)
fsutil behavior set disabledeletenotify ReFS 1

set_disabledeletenotify-1.webp


That's it,
Shawn Brink


 
Last edited:
The short way to say this (the way I used in my description) is that TRIM sends "hints" to the SSD to make it aware of the blocks that are not considered as used by the OS.
 

My Computers

System One System Two

  • OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
@hdmi, I've had to bookmark your post. That is some extremely detailed and good info in there. Thanks for being so thorough..
 

My Computers

System One System Two

  • OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor

Latest Support Threads

Back
Top Bottom