Check the TRIM flag
Run the query in an admin PowerShell. A value of 0 means TRIM is enabled, 1 means Windows is still telling the drive that deleted blocks are in use.
fsutil behavior query DisableDeleteNotify
TRIM tells the SSD which blocks are free. Two commands show whether it runs, and one command retrims a drive that fell out of the schedule.
**fsutil behavior query DisableDeleteNotify** returning **0** means TRIM is on. Run **Optimize-Volume -ReTrim** per SSD and let the weekly schedule do the rest - never defrag an SSD.
Run the query in an admin PowerShell. A value of 0 means TRIM is enabled, 1 means Windows is still telling the drive that deleted blocks are in use.
fsutil behavior query DisableDeleteNotify
Set the flag back to 0. No reboot is required for it to take effect.
fsutil behavior set DisableDeleteNotify 0
Optimize Drives must list the media type as Solid state drive. If it says Hard disk drive, the SATA controller is in IDE or RAID mode and never sends TRIM.
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus
The C: drive is in the weekly schedule already. Secondary SSDs that are not in the schedule get one manual retrim, which takes a few seconds.
Optimize-Volume -DriveLetter D -ReTrim -Verbose
Confirm the scheduled maintenance task is ready and set to weekly. Windows runs it when the machine is idle, so it usually goes unnoticed.
Get-ScheduledTask -TaskName ScheduledDefrag | Select-Object State
Windows treats SSDs as 'optimize', which sends TRIM. A manual defrag adds writes without speed and shortens the drive's life.
TRIM is disabled - set it to 0 and retest. Some 'optimizer' tools switch it off, so check after running one.
The shell is not elevated, or BitLocker is locked. Unlock the volume, then retry.
The controller runs in RAID/IDE mode or an old driver hides the media type. Fix the controller mode first - TRIM cannot arrive otherwise.
No. It only tells the drive which blocks are no longer in use.
Weekly through the Optimize Drives schedule. A manual retrim after big deletions is a harmless extra.
Nothing to revert for a working TRIM. If you disabled it on purpose, set the flag back with the same command and reboot.
Free · no account needed · tracks your progress