Hi,
currently the defrag task is broken.
Even manually setting the date does not properly correct the scheduled task run time.
Thankfully, the actual flags are set correctly.
You can read more about defrag here in a post I made clarifying it.
So how do I know if windows is doing defrag scan or not? And how do I know if it is turn on or off? Some people say to defrag SSD some say not to defrag SSD that it could damage SSD You can clearly see in the screen shots that others have posted when the last run time was. If you let...
www.techpowerup.com
You can correct the problem to make certain it continues to actually run, though the dates will not come back. (In the GUI, more on this later)
This GIF shows that manually setting the date does not correct the task. (This is all done on my personal machine (Build 2004) while typing this.
Now the flags of the task itself are in fact correct.
The issue, is that if the core windows task is modified it will set an entry letting the OS know you are utilizing a custom task. This means if you attempt to manually run defrag it will not let you open the GUI it will ask you to allow it to reset the task first. So keep that in mind.
Lets make sure that the task works as is before we make modifications too it.
The flags as mentioned are correct and trim will run after the initial runs. We use the GUI at this time to make sure the task is firing correctly. Assuming you have not made modifications it should run without an issue.
Now to schedule it to run. By DEFAULT when it did work this was normally done weekly.
Lets get started.
lets modify the properties of the defrag task itself.
Now we have the task properties box. We can modify a lot of the options but specifically we will want the "Triggers" tab.
As we can see it is empty.
You are going to want to click "New"
As you can see I set mine to run weekly to keep with the windows recommended settings. I also set the day and time to reflect when I normally use the machine.
Lastly I have the trigger enabled. Click "OK" to save.
Perfect, but what if you are not online? Well by default this task is set to "catch up" if you miss it. But you can check this in the settings tab.
You want to make sure "Run as soon as possible after a scheduled start is missed" This will pop the task regardless if you miss the time, or day.
Finally ok out of all the dialogue options. Now you should have a next scheduled run time.
Perfect, we can run it for good measure, but it will run by itself now and we can use this to make certain it does, because task manager will correctly record the time. not to mention you have again automated disk maintenance. Good job.
What about the GUI issue I mentioned before? Well we modified the task. Lets take a look.
You can elect to keep, and it will close. Defrag GUI will not open. If you choose to remove, Defrag will open but the task is reset.
If you want to make additional modifications you can, just utilize the link I provided in my post in the other thread. You can use the docs to specify specific disks etc etc etc.