I have a windows server 2012 std server configured to defragmentation weekly. But it is not working properly. It won't defrag even if fragmentation is more. When I check in task scheduler it was disabled and had one condition like run when computer is idle. So I just enabled scheduled task and removed that condition when computer is idle. Now my defragmentation configuration is like this.
Run the defragmentation task everyday at the time of system log on (Do not wait till system go idle).
But when I check one day after, again the task was disabled and it had same condition like when system goes idle.
How can I configure defragmentation to run automatically when computer is not idle?