Regularly defragmenting your hard drive is an easy way to keep it running smoothly. Windows comes with a basic yet effective defragmentation program. That program may sometimes stop working, and Microsoft does not make it available for download. Fortunately, it is simple to repair.
Things You'll Need
- Windows XP, Windows 2000 or Windows 2003 installed on your computer
Is your Defrag missing, or just broken?
Open \"My Computer,\" right-click on a hard drive and go to \"Properties.\" Navigate to the \"Tools\" tab.
Your Defrag is missing and needs reinstalling if: 1) the \"Defragment Now...\" button is missing or grayed-out, or 2) when you click on it you get an error message reading, \"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. Skip to \"Reinstalling Defrag.\"
Your Defrag is broken and needs repairing if: 1)you are able to open the Defrag program, but nothing happens when you click \"Analyze\" or \"Defragment,\" or 2)You receive the error message, \"Windows cannot connect to the Disk Defragmenter engine.\" Skip to \"Repairing Defrag.\"
In your main hard drive, find the c:\Windows\Inf directory. If your system directory is not on your c: drive or not named Windows, find it by clicking on \"Start,\" then \"Run\" and typing %Windir%\Inf in the box.
Find the file named dfrg.inf.
Right click the file and select \"Install.\"
Click \"Start,\" then \"Run,\" and run this command: regsvr32 dfrgsnap.dll
Click \"Start,\" then \"Run,\" and run this command: regsvr32 dfrgui.dll
Tips & Warnings
- If Defrag does not work after repairing or reinstalling it, and you have Service Pack 2 installed, try clicking \"Control Panel,\" then \"Administrative Tools\" and then \"Services.\" Find the \"DCOM Server Process Launcher\" and set its startup type to \"Automatic.\"
- The most common cause of Defrag malfunctions is installing, running and reinstalling a third-party defragmentation software.
- Another common error message associated with Defrag malfunctions is \"Snap-in failed to initialize.\"
How to Defragment Windows XP
The Disk Defragmenter tool in Windows XP allows you to repair hard disk errors automatically without risking damaging system files and components....
How to Restore My Disk Defragmenter to Default
Reinstall the disk defragmenter if it still does not work by entering "rundll32.exe setupapi,InstallHinfSection DefaultInstall ... How to Reinstall Defrag in Windows...