Disable Defragmentation of Boot Files

Page 1 of 2 12 LastLast
  1.    #1

    Disable Defragmentation of Boot Files


    Hello,
    In Windows 10 1903, to disable this via registry which path/key is used?
    If it's not possible to do via registry, is there a command to use in a batch file?
    Thanks.
      My ComputerSystem Spec

  2. Compumind's Avatar
    Posts : 1,300
    Windows 10 Pro x64, Various Linux Builds, Internet Security Specialty.
       #2

    Hmm.

    How do you know that your files are being Defragmented in the first place?

    Take a peek at this -

    Change Optimize Drives Schedule Settings in Windows 10

    Hope it helps.

    Last edited by Compumind; 3 Weeks Ago at 10:45.
      My ComputerSystem Spec

  3.    #3

    Thanks, actually I was trying "Windows 10 Manager" and it had some tweaks for optimizing SSDs.
    I never use such apps after clean Windows setup, but I just run my huge customized reg files to finish setup.
    So as I mentioned, I just need to Disable Defragmentation of Boot Files via registry, if not possible via cmd, I know it's possible since they already did it.
    Best :)
      My ComputerSystem Spec

  4. Compumind's Avatar
    Posts : 1,300
    Windows 10 Pro x64, Various Linux Builds, Internet Security Specialty.
       #4

    Kishvand said: View Post
    Thanks, actually I was trying "Windows 10 Manager" and it had some tweaks for optimizing SSDs.
    I never use such apps after clean Windows setup, but I just run my huge customized reg files to finish setup.
    So as I mentioned, I just need to Disable Defragmentation of Boot Files via registry, if not possible via cmd, I know it's possible since they already did it.
    You don't need to.

    Just do this 1-2 times per week and you are fine:

    Start -> Programs -> Windows Administrative Tools -> Defragment and Optimize Drives

    Works for both SSD and HDD.

      My ComputerSystem Spec

  5. bro67's Avatar
    Posts : 7,311
    Mac OS Mojave
       #5

    Boot files do not fragment. Forget those tweaks about speeding up the SSD. The OS housekeeping will take care of what needs to be "TRIMmed". Defrag on a SSD is not the same as how it is with a Platter Drive.
      My ComputersSystem Spec

  6.    #6

    I agree, the automatic/ default settings for drive optimization work just fine in Windows 10. No real need or benefit from tweaking it.
      My ComputerSystem Spec


  7.    #7

    Found it, here it is, thanks anyway :)

    'Disable Boot Files Defrag
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
    "Enable"="N"
      My ComputerSystem Spec

  8. thomaseg1's Avatar
    Posts : 4,423
    Windows 10 Professional (x64) Version 1903
       #8

    Kishvand said: View Post
    Found it, here it is, thanks anyway :)

    'Disable Boot Files Defrag
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
    "Enable"="N"
    Which merely shuts down the Defrag/Trim at startup. Saves a whole 5 seconds of startup time.
    And makes your manual Defrag/Trim longer.
      My ComputersSystem Spec

  9. bro67's Avatar
    Posts : 7,311
    Mac OS Mojave
       #9

    Kishvand said: View Post
    Found it, here it is, thanks anyway :)

    'Disable Boot Files Defrag
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
    "Enable"="N"
    Keep TRIM active. Otherwise you can lose data if the drive is not told by the OS when problems are seen.
      My ComputersSystem Spec

  10.    #10

    bro67 said: View Post
    Keep TRIM active. Otherwise you can lose data if the drive is not told by the OS when problems are seen.
    Interesting. Could you post some links to know more about this theory?
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Defragmentation script. in Performance & Maintenance
Could someone provide me with script which would run disk defragmentation ? I use Windows Ten. Thank you in advance !
First of all, I'll show situation with screenshot: http://i.imgur.com/aQ6kl0j.png 1. Why I have so many recovery partitions on my SSD? Is it okay? Or should I do something to change it? 2. It seems Defragmentation schedule was on weekly and all...
I defragmented all my drives yesterday before going to sleep and it said 0% fragments on all, I looked it up today and there is 3% on C: and 4% on D:. This started happening a lot recently, I defragment the drives and even after a few hours, with...
Solved Computer won't reboot after defragmentation in Performance & Maintenance
Hi. I have a computer which has Windows 10 on it (this was free upgraded from Windows 8 installed). I recently did a Windows defragmentation on it and the computer said it had to restart to finalise which I did. However, it wouldn't shut down, so...
Defragmentation of SSD's in Drivers and Hardware
hey guys, since Build 14295 my SSD's defrag starts automatically . The new Build , right now 14328 changes the settings and i have to reset this manually, to prevent this to happen. Am I the only one here? Jut to let you know
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 21:29.
Find Us