Optimize Drives frequency

Bournesup

Member
By default windows the frequency is set "daily" and only optimize the drive if needed.

Windows has the option of changing the frequency do weekly or monthly depending on the user's preferency. Is their a setting in Ntlite that will allow me to change the frequency. Basically, googling this option has not been successful
 

garlin

Moderator
Staff member
You can't modify (only delete) a scheduled task inside an image. But PS allows you to update the task, in Post-Setup or live.

Daily at 3 AM:
Code:
powershell -C "Set-ScheduledTask '\Microsoft\Windows\Defrag\ScheduledDefrag' -Trigger (New-ScheduledTaskTrigger -Daily -At 3AM)"

Every Sunday at 1 AM:
Code:
powershell -C "Set-ScheduledTask '\Microsoft\Windows\Defrag\ScheduledDefrag' -Trigger (New-ScheduledTaskTrigger -Weekly -DaysOfWeek Sunday -At 1AM)"
 
Top