How to Stop Windows 11 from Automatically Defragmenting Hard Drives

The Wear and Tear

Windows 11 includes a built-in maintenance tool designed to keep your storage drives running efficiently. By default, it runs a background schedule that attempts to defragment your hard drives on a weekly basis. While defragmentation is highly beneficial for older, mechanical hard disk drives (HDDs) where data is physically scattered across spinning platters, it is completely unnecessary—and actively harmful—for modern Solid State Drives (SSDs). Because SSDs use flash memory with limited write cycles, automatically running a defragmentation process forces the drive to needlessly rewrite gigabytes of data, slowly degrading its overall lifespan without providing any performance benefit.

Halting Scheduled Maintenance

To protect the longevity of your Solid State Drives and stop Windows 11 from automatically defragmenting your hard drives, you must disable the scheduled optimization task.

Press the Windows key, type Defragment and Optimize Drives, and press Enter to open the Drive Optimizer utility. At the bottom of this window, under the “Scheduled optimization” section, you will see the current status (likely “On”). Click the Change settings button on the right. A new dialogue box will appear. Simply uncheck the primary box labelled Run on a schedule (recommended). Click OK. This immediately halts all background defragmentation processes. (Note: If you have a mix of HDDs and SSDs, you can leave the schedule checked, click “Choose,” and manually untick your SSDs from the list while allowing your mechanical drives to remain optimized).

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.