Enable TRIM For Solid State Drives

Enable TRIM
Go to the Command Prompt and type:

fsutil behavior set disabledeletenotify 0



Disable TRIM
Go to the Command Prompt and type:

fsutil behavior set disabledeletenotify 1



How do I know if TRIM is working in Windows 7?
Go to the Command Prompt and type:

fsutil behavior query disabledeletenotify


DisableDeleteNotify = 1 (Windows TRIM commands are disabled)
DisableDeleteNotify = 0 (Windows TRIM commands are enabled)