Forum Discussion
Nivlee
Feb 26, 2019Copper Contributor
Windows Server ScheduledDefrag Task Schedule not running
All my Windows server (2008 R2 and above) unable to run scheduled task of disk defragmentation? I had turn on the schedule defragmentation in disk defragmenter and set it run on weekly basic, but, it...
Nivlee
Feb 28, 2019Copper Contributor
I had removed the all the check inside the condition tab but still not defrag the drive when I run the task schedule.
I noticed if I change the action argument to defrag.exe -c only, then defrag will run.
Can I know what is the meaning of -h -k -g -$? For your information, I using VM server.
Dave Patrick
Feb 28, 2019MVP
You can find most here.
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/defrag
The $ may have to do with priority. If it runs Ok using defrag.exe -c then I'd probably go with that as acceptable.