Hello,
You could disable the start value of the defrag service in the registry. Disable would be a value of 4
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I have a computer that has to be used for industrial applications.
It must stay on for long time periods to acquire data, therefore its resources cannot be saturated.
For this reason, I have disabled the automatic disk defragmentation.
Anyway I noticed that, every three days, the system defragment disk C.
I would like to know if there is a way to permanently disable the automatic defragmentation.
I have disabled it from "Defragment and Optimize Drives" (see the picture below).
I noticed that the tool declare that the last defragmentation was run on 18/10/2023, while, looking at Windows event log, it is possible to see that the disk has been defragmented four times since that timestamp (see the picture below).
Using "Performance monitor" I was able to determine that the defragmentation was active between 22:06:30 and 22:11:20 (below the disk usage in this time period).
I also run the powershell command Get-ScheduledTask | Get-ScheduledTaskInfo | where-object -property LastRunTime -gt ((get-date).AddDays(-3)) | Sort-Object -Property LastRunTime | Format-Table -Property TaskName, LastRunTime to retrieve the last tasks executed by the system but there is nothing that appear to me related to the defragmentation, as can be noted in the following picture.
Operating system version is Windows 10 Enterprise LTSC 2019.
Thank you in advance for the help
Hello,
You could disable the start value of the defrag service in the registry. Disable would be a value of 4
Hello,
Check scheduled tasks and see if you can disable the defrag task.
Start - Run - taskschd.msc
Hello, Darrell Gorter,
Thank you for your answer.
Unfortunately it is already disabled...
Is there something else that I can try?
Hello,
Thank you, I have modified the key in the register from 3 to 4, as you suggested.
Now I monitor the situation in the next days.
Hello,
Unfortunately even the change of the register key did not solve the problem...
This night (3 days after the last one) the defrag service started: any other ideas?
I have to correct: after having restarted the PC two other times, it takes the register change and now it do not perform defragmentation.
Thank you for the help