Symptoms

When you open the Properties dialog box for the local hard disk and then click the Tools tab, one of the following symptoms may occur:

  • The Defragment Now button is unavailable
  • When you click Defragment Now, you receive the following error message:

The Disk Defragmenter is not installed on your computer. To install it, double-click the Add or Remove Programs icon in Control Panel, click the Install/Uninstall tab, and then follow the instructions on your screen.

Resolution

To resolve this issue, follow these steps:

  • Click Start, click Run, type %Windir%\Inf, and then click OK.
  • Right-click the dfrg.inf file, and then click Install.

Alternately, you can reinstall Disk Defragmenter using the following command:

Click Start, Run and type:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\dfrg.inf

Other Defrag issues

Analyze and Defragment buttons in Disk Defragmenter console do nothing, or the following error message appears when running the console Defrag tool (defrag.exe)

Windows cannot connect to the Disk Defragmenter engine

Read the blog post Analyze and Defragment buttons in Disk Defragmenter console do nothing? for the solution.

If the Defrag Snap-in fails to initialize, type these commands in Start, Run dialog one by one:

  • regsvr32 dfrgsnap.dll
  • regsvr32 dfrgui.dll