Windows

How to Defragment Windows 11 for Better Performance

Richard
Written by
Richard
Aug 5, 2021 Updated Apr 14, 2026 2 min read
How to Defragment Windows 11 for Better Performance

This guide explains how to defragment your hard drive in Windows 11 to help your computer run faster.

Why defragment? Over time, files on your drive get scattered into small pieces. This makes your computer work harder to find and open them. Defragmenting puts these pieces back together in an organized way.

What happens when done? Your computer will be able to read and open files more quickly, leading to better overall performance.

Defragmenting can take a long time if you have a large amount of data. It is best to do this when you are not using your computer, such as overnight.

How to Defragment Your System Drive

You can optimize your drive through the Windows Settings menu.

  1. Open the Settings app by pressing Windows key + I or by clicking Start and selecting Settings.
Windows 11 Start menu accessing Settings

  1. Click on System, then select Storage on the right side of the screen.
Windows 11 System Storage settings interface

  1. Click on Advanced storage settings.
Advanced storage settings in Windows 11

  1. Select Drive optimization from the menu.
Windows 11 Drive Optimization tool interface

  1. You will see a list of your drives and their current status.
Windows 11 defragmentation tool turned off

If you want to set a specific time for this to run, make sure Schedule optimization is turned off by clicking Change settings.

How to Schedule Defragmentation

Windows usually handles this automatically, but you can use the Task Scheduler to pick a specific time.

Note: This process requires admin privileges.

  1. Search for Task Scheduler in the search bar and open the app.
Windows 11 Task Scheduler application window

  1. In the menu on the left, go to Task Scheduler Library %%LNK0%% > Microsoft > Windows > Defrag.
Task Scheduler setup for defragmentation

  1. Double-click the defrag schedule or click Properties on the right side.
Windows 11 defragment task schedule triggers

  1. Click the Triggers tab and click New to choose your preferred time and frequency.
Windows schedule for defragmentation triggers

  1. Click OK to save your settings. Finally, right-click the task and select Enable to turn it on.
Enabling scheduled task for Windows 11 defrag

Summary

Defragmenting organizes your files so your computer can find them faster. By using the built-in Windows 11 tools, you can keep your system running smoothly. While Windows manages this automatically, using the Task Scheduler allows you to pick exactly when the maintenance happens, such as during the night, to avoid any disruption to your work.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2458 articles → Twitter

📚 Related Tutorials

How to Show or Hide Recently Opened Items in Windows 11
Windows How to Show or Hide Recently Opened Items in Windows 11
How to Reset Local Security Policy in Windows 11
Windows How to Reset Local Security Policy in Windows 11
How to Rename Files and Folders in Windows 11
Windows How to Rename Files and Folders in Windows 11
How to Rename Bluetooth Devices in Windows 11
Windows How to Rename Bluetooth Devices in Windows 11

Leave a Reply

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