How to disable automatic defragmentation in Windows 10? It is scanning my 2 TB HDD for 2 hours already and lags too much.
In addition to the method geotavros described, another method for turning off automatic defrag/optimization can be accomplished by doing the following....
- Click on the
- Start typing
Defragand you'll see an option come up called
Defragment and Optimize Drives. Select that.
- Make sure the drive you want to turn off defrag/optimize is highlighted and then click on
- Uncheck the box that says
Run on a schedule
- Click on OK and you're done.
Alternative process with Command Prompt::
- Run Command Prompt as administrator and run the command
schtasks /Delete /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" /F
/TN option specifies the path\name of the task to delete.
/F option forcefully deletes the task and suppresses warnings if the specified task is currently running.
You can disable it via the Task Scheduler > Task Scheduler Library > Microsoft > Windows > Defrag > then disable the "ScheduledDefrag".