Manage the scheduled defrag job centrally

Starting with Windows Vista the defragmentation utility is scheduled to run on all drives once per week. The defrag is done in the middle of the night but if the machine is not on at that time, the defrag will start after next power on.

Anyway, you can disable, change the schedule or in other ways modify the task centrally by for instance deploying a script file by using GPO:s. The following command line disables the scheduled defrag task from running.

schtasks /change /tn "microsoft\windows\defrag\ScheduledDefrag" /disable

2 Comments

Add a Comment