Best Practice: Disable Disk Fragmentation Scheduled Task

By default Windows Server creates a scheduled task for defrag. Connected drives from a Pure Storage FlashArray do not need this defragmentation operation performed as it wastes unnecessary cycles on the host and on the FlashArray.

defrag_schedule

To quickly disable this task run the following Windows PowerShell script. This will check the State of the task and disable as necessary.

I recommend just disabling vs deleting the task.

Download script https://github.com/barkz/PurePowerShellGuy.

Thanks,
Barkz

Add Comment

Required fields are marked *. Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">