Check how to defrag Windows 10 hard drive below.
To manage Windows 10 hard drive, you’re free to useMiniTools flag product MiniTool Partition Wizard.
How to defrag Windows 10 computer hard drive?

your machine has to check different places in the hard drive for those pieces.
Windows 10 provides a built-in free disk defrag tool to help you accomplish this Windows 10 defragment task.
Step 1.

Step 2.
After the analysis is completed, you’re free to check the percentage of fragmented files.
Note:If you have an SSD, theAnalyzebutton is grayed out.

SSD doesnt need to be defragmented.
For SSDs, you dont need to worry about disk defragmentation.
Step 3.
After the defragment process is finished, the target drive should display 0% fragmented in Optimize Drives app.
Step 2.ClickChange settingsbutton, and set the frequency to run thedisk defragmentationon a schedule.
it’s possible for you to chooseDaily,Weekly(default), orMonthly.
Step 3.ClickChoosebutton to snag the drives you want to apply the new disk optimization schedule.
And clickOKto carry out the changes.