

If the Answer is helpful, please click " Accept Answer" and upvote it. I ever read an article and feel helpful, I think you could get your answer from it However, ever since Windows 7, Windows has automatically enabled TRIM for any drive it detects as solid-state.Ībout your concern: “Is it best to turn off the automatic option and edit the existing scheduled task to run on a set time, minus the "-$"? TIA” If you used an SSD with Windows XP or Vista, you needed to manually enable TRIM, which ensures your SSD can clean up deleted files and stay speedy. There are some important optimizations, but Windows performs them all automatically. If your device using SSD, drive optimization does not defrag the SSD, but optimizing it: All three are listed as Event ID 258 and Task Category is listed as none. The defragmentation is 100% being performed (System Restore is enabled) and it shows up in the Event Viewer as "The storage optimizer successfully completed defragmentation on Windows (C: ) and "The storage optimizer successfully completed defragmentation on WINRE_DRV." These events are preceded with a "The storage optimizer successfully completed retrim on Windows (C: ) event. Somewhere I read that it means that the task is being ran/controlled by another process? Looking under History for this task, I see there was a launch request at 3:01:23AM, followed by some other actions only to end with Task Completed at 3:01:26AM.Ĭan anyone shed some light into what Windows is doing here? Am I looking at the wrong Event IDs, or maybe the wrong logs? Is it best to turn off the automatic option and edit the existing scheduled task to run on a set time, minus the "-$"? TIA I know what all the parameters except the "-$" are. Looking closer, the Actions are as follows: %windir%\system32\defrag.exe -c -h -k -g -$. I see nothing under Triggers or Next Run Time. It says it is ready and has a Last Run Time of this morning at 3:01AM and says it was completed successfully. If I open up Task Scheduler, and select Microsoft\Windows\Defrag, I see the system-created task "ScheduledDefrag".

So, is this running automatically like it should, or not? Also, what time can I expect it to run? How do I tell if this is running correctly? Looking in Event Viewer and filtering the Application log for Event ID's 258 & 259, I see several entries for Event ID 258, with the source of Defrag, but they are all time-stamped for yesterdays manual optimization.

This was a manual optimization done just prior to turning on the automatic option. The last run time for the drives shows as 6/14/21 at 10:14AM.

In the drive Properties, under Optimize Drives I have enabled the automatic option running daily.
