none
Re-install disk defragmenter

    Question

  • We have Windows 7 x64 bits Ultimate systems. 
    We were using Trend Micro Titanium AntiVirus and works fine since summer 2011.
    Then, we install Windows 7 x64 bits Service Pack 1 recently.

    Well, everything not doing well lately. One of the problem is Disk Defragmenter will not start. 

    We remove the troublesome Antivirus programs. However, Disk Defragmenter still does not start. When click in System Tools, nothing seems get executed and the hard drive will make lots of noise for around a minute. Then, nothing happens. We check, the file c:\windows\system32\dfrgui.exe is still there. Tried to execute this, nothing happens.

    Preform disk scan using sfc. Found everything OK. 

    So, how can I re-install this disk defragmenter?

    Saturday, March 3, 2012 6:37 AM

Answers

  • Can you follow the steps from this Microsoft answer and see if that resolves the problem for you:

    There are several reasons why the built-in defragger may not work properly: 

    0. There is malware on the system. Solution: Run an Anti-Virus check and also a Spyware check. 

    1. The disk is too full (you need at least 15% free space, sometimes 20%). Solution: Delete unneeded files and programs till you have more than 20% free space. 

    2. The disk is damaged and needs to be repaired. Solution:  

    a. Open "My Computer" and right click on the drive you want to de-frag.  
    b. Select "Properties" and click on the "Tools" tab.  
    c. Select "Check now" to check the disk for errors.  
    d. Select both options and click "start"; 

    (It may take a while and the PC may re-start so it can do the check at boot time. Be patient and let it complete). 

    3. Disk Defragmenter may be corrupted, needing a System Restore to correct it. Solution:  

    a. Start - All Programs - Accessories - System Tools - System Restore (click to open);
    b. Select a restore point well before you started having problems with Disk Defragmenter;
    c. Start the restore process and let it complete (Name the restore operation something descriptive like "Defrag Repair"). 

    4. There are other programs running that interrupt the built-in defragmenter. Solution:
    a. Close all running programs.
    b. If you suspect there may be some programs running in the background,
    c. Press Ctrl+Alt+Delete and
    d. Select "Start Task Manager"
    e. Under the "Applications" tab you will find a list of all running applications -- you can close these by selecting "End Task." 

    5. If still no luck, try disabling the screen saver when running Disk Defrag (you should pretty much leave the system alone when running the built-in defrag utility). 

    6. If still no go, try running the defragmenter in Safe Mode. If it runs, something is interfering with it and tracking the interference down may not be easy. Note: Some versions of Win 7 disable the ability to run the built in defragger in safe mode. If disabled, it will say so when trying to run it in safe mode. 

    7. Disk Defragmenter may no longer be on the system or is so corrupted that it needs a re-install. Solution: Re-install the built-in.

    There are several methods to re-install the built-in defragger:

    A:
    a. Open the "Start" menu. 
    b. Type "%Windir%\Inf" in the "Search" box and press "Enter". 
    c. In the window that opens, find the file named "dfrg.inf". 
    d. Right-click on "dfrg.inf" and "Install." 

    B:
    a. Go to "Start > Run" on your computer.
    b. Type "rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\dfrg.inf" and press "Enter"
    3. Click "OK" to make the program automatically reinstall itself.

    C:
    a. Go to Start >All Programs>Accessories>Right Click on Command Prompt> select "Run As Administrator"
    b. At command prompt, type "regsvr32 dfrgsnap.dll" and hit "Enter."
    c. Type "regsvr32 dfrgui.dll" and hit "Enter." This will reinstall any missing defragger files.

    8. Most problems will resolve by #6 above, but if not and if your windows install is otherwise running fine, you should consider downloading a free trial of a commercial defrag tool as opposed to doing drastic actions to restore the built-in's functionality. Third party programs  are more robust and many work in the background so you can use your PC while defragging. 

    Most third party programs offer a free, fully-functional trial (the better ones are for 30 days). Installing one of these will disable the built-in and if you decide to uninstall it, removal will replace the built-in, many times repairing it in the process -- it's worth a try. . ..

    Here is a recent Top 10 Reviews side-by-side comparison of the best defrag programs available: 

    http://disk-defragmenter-software-review.toptenreviews.com/ 

    The top placer is the only defrag program that also prevents fragmentation (see the review).  

    Why is it good to prevent fragmentation?

    Basically, it drastically increases your hard drive's life expectancy (especially since you don't have to leave the system on all night -- a much "greener" practice), not to mention it will also increase system performance.

    Source: http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/windows-7-disk-defragmenter-does-not-work/87965977-1252-e011-8dfc-68b599b31bf5

    Saturday, March 3, 2012 7:32 AM
  •  

    Hi,

    As the issue occurred after installing Windows 7 Service Pack 1, I suggest performing System Restore to back up the system to a date before installing it.

    Then, please try to download and install SP1 manually in Clean Boot environment.

    Windows 7 Service Pack 1:

    http://www.microsoft.com/download/en/details.aspx?id=5842

    Note: please download “windows6.1-KB976932-X64.exe(903.2 MB)”.

    How to troubleshoot a problem by performing a clean boot in Windows 7:

    http://support.microsoft.com/kb/929135

    Best Regards,

    Kim Zhou


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, March 8, 2012 3:24 AM
    Moderator

All replies

  • Can you follow the steps from this Microsoft answer and see if that resolves the problem for you:

    There are several reasons why the built-in defragger may not work properly: 

    0. There is malware on the system. Solution: Run an Anti-Virus check and also a Spyware check. 

    1. The disk is too full (you need at least 15% free space, sometimes 20%). Solution: Delete unneeded files and programs till you have more than 20% free space. 

    2. The disk is damaged and needs to be repaired. Solution:  

    a. Open "My Computer" and right click on the drive you want to de-frag.  
    b. Select "Properties" and click on the "Tools" tab.  
    c. Select "Check now" to check the disk for errors.  
    d. Select both options and click "start"; 

    (It may take a while and the PC may re-start so it can do the check at boot time. Be patient and let it complete). 

    3. Disk Defragmenter may be corrupted, needing a System Restore to correct it. Solution:  

    a. Start - All Programs - Accessories - System Tools - System Restore (click to open);
    b. Select a restore point well before you started having problems with Disk Defragmenter;
    c. Start the restore process and let it complete (Name the restore operation something descriptive like "Defrag Repair"). 

    4. There are other programs running that interrupt the built-in defragmenter. Solution:
    a. Close all running programs.
    b. If you suspect there may be some programs running in the background,
    c. Press Ctrl+Alt+Delete and
    d. Select "Start Task Manager"
    e. Under the "Applications" tab you will find a list of all running applications -- you can close these by selecting "End Task." 

    5. If still no luck, try disabling the screen saver when running Disk Defrag (you should pretty much leave the system alone when running the built-in defrag utility). 

    6. If still no go, try running the defragmenter in Safe Mode. If it runs, something is interfering with it and tracking the interference down may not be easy. Note: Some versions of Win 7 disable the ability to run the built in defragger in safe mode. If disabled, it will say so when trying to run it in safe mode. 

    7. Disk Defragmenter may no longer be on the system or is so corrupted that it needs a re-install. Solution: Re-install the built-in.

    There are several methods to re-install the built-in defragger:

    A:
    a. Open the "Start" menu. 
    b. Type "%Windir%\Inf" in the "Search" box and press "Enter". 
    c. In the window that opens, find the file named "dfrg.inf". 
    d. Right-click on "dfrg.inf" and "Install." 

    B:
    a. Go to "Start > Run" on your computer.
    b. Type "rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\dfrg.inf" and press "Enter"
    3. Click "OK" to make the program automatically reinstall itself.

    C:
    a. Go to Start >All Programs>Accessories>Right Click on Command Prompt> select "Run As Administrator"
    b. At command prompt, type "regsvr32 dfrgsnap.dll" and hit "Enter."
    c. Type "regsvr32 dfrgui.dll" and hit "Enter." This will reinstall any missing defragger files.

    8. Most problems will resolve by #6 above, but if not and if your windows install is otherwise running fine, you should consider downloading a free trial of a commercial defrag tool as opposed to doing drastic actions to restore the built-in's functionality. Third party programs  are more robust and many work in the background so you can use your PC while defragging. 

    Most third party programs offer a free, fully-functional trial (the better ones are for 30 days). Installing one of these will disable the built-in and if you decide to uninstall it, removal will replace the built-in, many times repairing it in the process -- it's worth a try. . ..

    Here is a recent Top 10 Reviews side-by-side comparison of the best defrag programs available: 

    http://disk-defragmenter-software-review.toptenreviews.com/ 

    The top placer is the only defrag program that also prevents fragmentation (see the review).  

    Why is it good to prevent fragmentation?

    Basically, it drastically increases your hard drive's life expectancy (especially since you don't have to leave the system on all night -- a much "greener" practice), not to mention it will also increase system performance.

    Source: http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/windows-7-disk-defragmenter-does-not-work/87965977-1252-e011-8dfc-68b599b31bf5

    Saturday, March 3, 2012 7:32 AM
  • Thank you Jaap, actually we followed this exact same post found in Google.

    Everything is fine, except:

    item A.b. we do not have search box. Unable to find dfrg.inf. Assume it should be in c:\Windows\inf\dfrg.inf - but not there.

    item B.b. c:\windows\inf\dfrg.inf is not there from all systems we check.

    item C.b. command prompt > regsvr32 dfrgsnap.dll  -- nothing happened.

    Many users complained Adobe Reader crash problems in Windows 7 x64 with SP1. Removed Adobe Readers in all systems.

    last, item 6, run Safe mode. Start Disk Defragmenter. Nothing happened. Then, restart system at normal mode. Start Disk Defragmenter -- wow - it starts.

    Problem solved. But do not know why. Thanks.

    Saturday, March 3, 2012 7:47 PM
  • Cool so it does work now, if you are uncertain of why it is working now you might want to perform a System File Checker scan to see if any files are missing or broken on the Windows 7 system.

    You can follow this article to execute the scan:

    How to use the System File Checker tool to troubleshoot missing or corrupted system files on Windows Vista or on Windows 7

    Monday, March 5, 2012 7:14 AM
  • Jaap, we ran system file checker and found nothing.

    I think its problem with Windows 7 operating system that blocks the Disk Defragmenter to execute. Running Safe Mode released the block (how, we do not know).

    Monday, March 5, 2012 7:19 PM
  • Are you using Applocker by any chance?
    Tuesday, March 6, 2012 8:41 AM
  • no applocker used here. Only in some other type of Windows 7, not all.
    Tuesday, March 6, 2012 7:27 PM
  • Okay well then, if there is no program blocking the execution of the application and SFC reports no file errors then you have three options left:

    • Troubleshoot the issue
    • Re-image the machine
    • Use 3rd party defrag tool eg: mydefrag

    I would lean towards either option number 2 or 3. The first option is time consuming and might not lead to a solution. If you want to troubleshoot I would suggest using procmon and list what happens to the defrag process before it is killed. Is it denied access anywhere or does it encounter an error that causes it to close immediately after starting.

    Wednesday, March 7, 2012 4:30 PM
  • Jaap. We just do not know what happened to Win 7. We cannot re-create it. Thanks for your help.

    We have more urgent Win 7 SP1 problem to solve this random unable to display double-byte Asian characters in file names. So far, nothing from Microsoft support.

    Wednesday, March 7, 2012 4:57 PM
  •  

    Hi,

    As the issue occurred after installing Windows 7 Service Pack 1, I suggest performing System Restore to back up the system to a date before installing it.

    Then, please try to download and install SP1 manually in Clean Boot environment.

    Windows 7 Service Pack 1:

    http://www.microsoft.com/download/en/details.aspx?id=5842

    Note: please download “windows6.1-KB976932-X64.exe(903.2 MB)”.

    How to troubleshoot a problem by performing a clean boot in Windows 7:

    http://support.microsoft.com/kb/929135

    Best Regards,

    Kim Zhou


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, March 8, 2012 3:24 AM
    Moderator
  • None of this worked.  Is there anything else I can do to get the Disk Defragmenter to work again?
    Monday, August 15, 2016 1:37 AM
  • W7 fragmentation stopped working after installation Advanced System Care. ASC also did something itself

    but with no success. In Disk Management Service in stead of system  defrag.exe each time started useless ASC "defragmenter".

    To solve the problem I just run DOS command window cmd.exe and then use command

    defrag c: /U

    It works OK

    Friday, March 31, 2017 10:31 PM
  • I've read all the answers, and I'm thinking,

    "God, every time the same thing... You go on a MS forum, and they give you all the crap that you don't need to know".

    I got the same issue. All I need is to download the file dfrgui.exe, but nowhere to be found.
    I can install the WIndows 2000 defrag agent, which we used successfully in Windows XP, but I wonder why MS simply doesn't just give us the download location of dfrgui.exe

    It would solve a lot of problems.

    In my case, my pc is suffering from the typical 2 problems:

    1- It's over 3 years old. Data gets corrupted.

    2- It has a good 20 programs installed, which seems to be just about the max that Windows can handle.
    Once you install more than an x-amount of programs in Windows, errors will start occuring.
    Has been happening since the days of Windows 95, to Windows 7.
    Windows 8 and 10 kind of have less of a problem, since half of the programs can also be downloaded as apps; where they use a lot less of resources.


    Pro!

    Saturday, May 27, 2017 6:22 AM