13 Jul
The problem is whenever he tries to run the Disk Defragmenter shortcut from Start > Programs > Accessories > System Tools > Disk Defragmenter, only an error window “MMC cannot open the file C:\Windows\system32\dfrg.msc. This may be because the file does not exist, is not an MMC console, or was created by a later version of MMC. This may also be because you do not have sufficient access rights to the file.” appears.

Here are some suggestions on how to fix running disk defragmenter problem in Windows.
One of the methods below should be able to help you restore Windows Disk Defragmenter. Try the first solution and then run Disk Defragmenter. If it didn’t fix the problem, continue with the second one and etc.
Solution 1: Make sure you have rights to run Microsoft Management Console (MMC) and MSC file.
Solution 2: Go to Start > Run, type regsvr32 msxml3.dll and click OK.

Solution 3: Go to Start > Run, type regsvr32 dfrgsnap.dll and click OK. Then again go to Run, type regsvr32 dfrgui.dll and click OK.
Solution 4: Go to C:\Windows\Inf, right click at dfrg.inf file and select Install.

Solution 5: Go to Start > Run and type sfc /scannow. Make sure you have your Windows XP installation disc in the CD/DVD drive.
Solution 6: Download and apply .MSC association fix.
Solution 7: Download and apply Defrag SnapIn registry fix.
Solution 8: Download and install latest MMC 3.0 from Microsoft.
One of the methods above should be able to help you restore your disk defragmenter. But for my case, I’ve gone though all methods above and it still doesn’t restore Windows Disk Defragmenter. Every time I run defrag, I still get the error MMC Cannot Open the File C:\WINDOWS\system32\dfrg.msc. After days of trying, finally I just decided to rename the dfrg.msc file at C:\WINDOWS\system32\ to dfrg-renamed.msc. I ran dfrg-renamed.msc, and I was shocked to see that it was able to run! So I created a shortcut for dfrg-renamed.msc and place it at Start menu and desktop for my client.
Until today I still couldn’t figure out what is causing this weird behavior but this workaround allows me to run Disk Defragmenter without getting the MMC Cannot Open the File C:\WINDOWS\system32\dfrg.msc error. I’d appreciate if you can share with me what might be the cause of this problem and how to really fix it.
: Copying this article to your website is strictly NOT allowed. However, if you like this article, you can use the HTML code below to directly link to this article.
Fix General Failure when Open Link or URL from Outlook and Windows Mail Scrolling Gmail in Internet Explorer Takes Up 99% CPU Problem Test Open Port Forwarding for Your Router or Computer FIX Fatal error: Allowed memory size of 8388608 bytes exhausted ERROR Maximize New Internet Explorer Windows Surf the Web Faster and Login to Windows Live Messenger for Malaysian Streamyx Users Open Hotmail with Firefox from Windows Live Messenger
Have computer technical problems? Get FREE help from Raymond.CC FORUM
40 Responses for "Fix MMC Cannot Open the File C:\WINDOWS\system32\dfrg.msc Problem"
Great Raymond. You have done lot of analysis on this. Maybe the cause is here –
http://support.microsoft.com/kb/326574
Never seen this problem on my systems
ooh! i acutally have had this problem before! thoguh bac kthen, ididnt noe what to do so i just rebooted :/
See this maybe once a year.
In my experience its sometimes caused by removing too much with nLite and sometimes by a poor uninstall of Diskeeper.
I’m not criticising these products.
I’ve written a crude batch file that simply replaces/overwrites the appropriate files and/or registry keys.
I had a similar problem once (with another program). The REN seemed to also solve my problem. Several days later, I REN\’d it back to its original name, and it worked. I think Windows gets dyslexic sometimes, or the NTFS might get corrupted. The REN seems to correct the problem for some reason.
hi raymond you manage to fix the problem you posted here.. wat about typing rstrui in run command and giving you this error message
—————————
rstrui
—————————
Windows cannot find \’rstrui.exe\’. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
—————————
OK
—————————
I try to ready this problem as I went to my friends house and type this \”rstrui\” in the run command. I was supprised that same error message popup. So I think it is not really an error on my computer. by the way I can still launch system restore on all programs>accessories>system tools>system restore and no problem. My question is can you make system restore launch on run command?
You Rock! I’ve been hours trying to fix my disk defragmenter. 20 minutes on your page and…problem solved! #8 worked for me.
Thanks
Stewart is right..this problem is almost always caused by Diskeeper in a normal users computer. The reason you can\\\’t find it is cuz, they have uninstalled it long before (which is the cause of the problem).
Your the solution after #8 fixed the problem i renamed and pinned it to the start menu thanks for your research and solutions God bless you Mightly!!!
thanks man, #8 did it for me, took me like 15 min or so to figure out what to do for it but i eventually got it and now my defrag works
C’est totalement étrange, mais cela marche.
Je ne sais pas non plus pourquoi….
J’ai cherché des semaines, essayé toutes les combines possibles, sans jamais trouver de solution… puis…
J’ai trouvé cette astuce sur le net, ici, et cela fonctionne, mais je ne m’explique pas pourquoi…
Vous allez voir, la manoeuvre est d’une simplicité enfantine et sans danger.
Vous renommez le fichier drfg.msc de c:\windows\system32 en dfrgfichierenommé.msc ou ce que vous voulez…
Et le défragmenteur se met à remarcher c’est assez étonnant…
si on le renomme dfrgtoto.msc, cela marche aussi, de même que dfrgtotofaidugato.msc
Si quelqu’un a une explication…
many thanks Raymond, #8 stopped my hairfall
Tenía el mismo problema que tu y me ha funcionado la solución 8. He tenido que encontrar el idioma adecuado y todo perfecto.
Gracias
Помогло – Решение 8: Загрузка и установить последнюю MMC 3,0 от Microsoft.
http://support.microsoft.com/kb/907265
Спасибо.
just did this for a client, thank for everything.. not sure why its coming..
Fix MMC Cannot Open the File C:\WINDOWS\system32.
hi are you having trouble with this problem above
to fix this go to the URI above and download Microsoft Management Console 3.0 for Windows XP (KB907265).
this will fix that problem.
it works.
cheers bernie
http://www.microsoft.com/downloads/details.aspx?familyid=61FC1C66-06F2-463C-82A2-CF20902FFAE0&displaylang=en
Thanks a lot! Solution 8 worked for me. God bless you
解決8 : Download下載 and install latest MMC 3.0 from Microsoft.並安裝最新的MMC 3.0從Microsoft 。
This is OK , thanks!
THank you SOOOOOOOOOOOOO much, I contacted HP who told me to do a system restore on my 1.5 yr old media center pc, Ive already done 2 since purchasing this pc, and that seems to be their solution to everything when they dont know how to fix a problem. I followed your advice EXACTLY after removing IE8 from my pc, which I believe the problem began After downloading the Beta version IE. It also caused a problem with my Help and support application on the pc. After performing each of your solutions, I rebooted my computer and Now Everything works like new. Thank you again for your kind advice and posting it so others could get their systems up and working again!
Thanks man it also fixed my system restore as that wouldn’t work earlier a trojan caused the dll to turn itself off It was a trojan in back up in the system 32 folder,again thank you.
Many thanks MAN!!!
Спасибо Вам!! Решение №8- и у меня все проблемы решились!!!
I just renamed the dfrg.msc file and now my defrag works fine… I tried the Hotfix first but that did help.
перепробовал всё, сработал 8 метод, спасибо большое!!!
muito abrigado resovel meu pro…
Great work! Thanks… downloading and re-installing MMC from Microsoft did the trick for me!
Muito bom esse tutorial. A SOLUÇÃO 6 resolveu meu problema. Muito brigado.
è GRANDIOSO STò SITO ………….BRAVI I RAGAZZI DELLA REDAZIONE!!!!!!!!CIAO A TUTTI!!!!!!!!!!!
Cara eu estava com o problema do tópico acima, fiz tudo que foi indicado e não deu certo. Foi ai que me veio a ideia de instalar o sp3 e o desfragmentador voltou a funcionar. Obs: Eu ja havia instalado o sp3 anteriormente só que não gostei e desinstalei-o, mas só fui fazer a desfragmentação há uns 3 dias atrás e observei este problema. Resumindo: Problema com o dfrg.msc resolvido com a reinstalação do sp3.
Hi,
I will like to check that for solution 8, which link should I download? I’m kind of blur with this and it actually stated “Release Date: March 13, 2006″. Does this mean its an latest version?
Windows Server 2003, x86-based versions
Windows Server 2003, Itanium-based versions
Windows Server 2003, x64-based versions
Pls guide me through this solution as i tried all others and it doesnt help.Headache!!
Thanks!!
Had same problem with different .msc, renaming was my only solution. Problem started after MS update
thaks of lot, solution 8 resolved my problem. Thanks again.
Man you rock, slution 8 saved my day….
Just to let you know i read about it and for my case what caused the problem was that i installed service pack 3 and i had some problems. After i removed service pack 3 then probably it removed also the dfrg.msc…..
TKS!!!! Finally works the last one (download & reinstall
MMC)
I solved the problem by adding new item in the mmc console:
Go to Start > Run and type mmc
then add new item in the console:
File>add/remove>add>disk defragmentation
then save the console.
That’s it. It works.
(It also works with renaming of dfrg file)
Thanks for this one. it really helps. til next time! i hope you contribute more to fixing anything about computers
solution no8 not valid anymore because it’s not compatible with SP3. Renaming not working for me – any *.msc file behaves the same way, regardless its name. Adding modules to mmc console? Yes, it’s works but only temporary. I can’t save! At least I can reach msc’s that way
Reinstalling windows it’s only solution I guess.
ok, I tried several things at once and I don’t know witch of them really helped
First I tried solution no2 but with all msxml*.dll files (there are 3 of them). Funny is that exactly with msxml3.dll I failed – some error about something
So I downloaded msxml3.dll and replaced mine. Still no go with regsrv32. Then I launched reg files mentioned in sol no 6&7. Finally I restarted machine and everything was ok, all msc’s working now. What MS tells about this problem:
http://support.microsoft.com/kb/914231
Muito obrigado, solucionou o problema
Leave a reply