Enabling the TRIM function for your SSD in Windows is essential to optimize drive performance, accelerate data write speeds, and extend the lifespan of your solid-state drive. TRIM works by automatically clearing unused data blocks, preventing a decrease in performance as time passes. It is imperative to maintain fast and efficient operation of your Windows SSD.
Although TRIM should be enabled by Windows automatically it is always a good idea to check. By opening the command prompt as administrator you can use the following command:
fsutil behavior query disabledeletenotify
it should return something like this:
C:\Windows\System32>fsutil behavior query disabledeletenotify
NTFS DisableDeleteNotify = 0 (Allows TRIM operations to be sent to the storage device)
ReFS DisableDeleteNotify = 0 (Allows TRIM operations to be sent to the storage device)
In this system there are two different types of SSD drives NTFS and ReFS. They are both 0 which means TRIM is enabled on both drives. A 1 would mean that TRIM is disabled.
If you see a 1 and want to enable for that drive you would execute one of the two following commands depending what drive type it is:
fsutil behavior set disabledeletenotify NTFS 0
fsutil behavior set disabledeletenotify ReFS 0
If you want to disable it just use the same command except use a 1 instead of a 0.