Defragsvc keeps starting up automatically

Page 2 of 2 FirstFirst 12

  1. Posts : 426
    Windows 10 64-bit Ver 1909, OS build 18363.535
    Thread Starter
       #11

    TairikuOkami said:
    Run CMD as admin and copy/paste:
    Code:
    reg add "HKLM\Software\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /t REG_SZ /d "n" /f
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OptimalLayout" /v "EnableAutoLayout" /t REG_DWORD /d "0" /f
    schtasks /Change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /Disable
    sc config defragsvc start= disabled
    net stop defragsvc /y
    It is better to use 3rd party software to defrag. It is way faster and more informative.

    Windows defrag takes ages and sometimes it actually never ends.

    14 Free Defrag Software Tools (Updated February 2018)
    Thanks. What do those registry tweaks do exactly? I don't like to add registry tweaks/settings unless I know exactly what each one does. If I run those and I still want to run Windows 10 manually, will I be able to?

    I used to use 3rd party defrag software but not since moving to Windows 10. I do have defraggler and IObit Smart Defrag installed but I never use them actually. Windows does sometimes take a long time, especially since it sometimes runs tons of passes and it never bothers to tell you how many more it's planning on making. But I've never run into an issue where it hasn't finished at some point.
      My Computer


  2. Posts : 4,557
    Windows 10 Pro
       #12

    Why only now do you mention you have 2 other defragging tools installed.

    If you never use them, than uninstall them, they could be causing the problem. Windows does a fine job on its own.

    If you keep your drives at 0% defragmented, you`re good.
    Attached Thumbnails Attached Thumbnails Defragsvc keeps starting up automatically-defrag.jpg  
      My Computers


  3. Posts : 426
    Windows 10 64-bit Ver 1909, OS build 18363.535
    Thread Starter
       #13

    AddRAM said:
    Why only now do you mention you have 2 other defragging tools installed.

    If you never use them, than uninstall them, they could be causing the problem. Windows does a fine job on its own.

    If you keep your drives at 0% defragmented, you`re good.
    Because I have already checked and they are fully disabled. It's windows defrag service that is running, not the 3rd party tools. I just checked again in both programs, and all auto modes are disabled, and the software does not run at startup. And those programs are not in the resource manager when the windows defrag service is running. I have them installed because I like to have options. As mentioned above, some like 3rd party tools so that they know how far along they are in the process. Windows keeps it a secret so it may be 10 more minutes, it may be 2 more hours. Some 3rd party tools do a much better job at letting you know the status.

    It shouldn't matter how defragmented my drives are or aren't - if it is disabled in the scheduler (it is) and in the screen you show above (it is) then it shouldn't be running. But it does anyways.
      My Computer


  4. Posts : 5,174
    Windows 11 Home
       #14

    rivre said:
    Thanks. What do those registry tweaks do exactly?
    Disabling Disk Defragmentation

    The rest is to disable the scheduled task and the service.


    rivre said:
    If I run those and I still want to run Windows 10 manually, will I be able to?
    Yes, they just disable automatic defragmentation.
      My Computer


  5. Posts : 1
    Windows 10 Home
       #15

    TairikuOkami - Thank you for the reg fix. I had the exact same problem as RIVRE above and I tried everything. Also my nearly thrashed-to-death HDD thanks you too.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:36.
Find Us




Windows 10 Forums