Skip navigation

JSI Tip 10418. You receive 'MMC cannot open the file C:\WINDOWS\system32\devmgmt.msc' when you open Device Manager or the Computer Management window?


When you attempt to open Device Manager, or the Computer Management window, you receive an error similar to:

MMC cannot open the file C:\WINDOWS\system32\devmgmt.msc.

This behavior may occur if one or more library files used my the MMC are missing or corrupted:

Msxml.dll 
Msxml2.dll 
Msxml3.dll
I have scripted FixMMCDLL.BAT to resolve this behavior:

1. Open a CMD.EXE window.

2. Type FixMMCDLL.BAT and press Enter.

3. Shutdown and restart your computer.

FixMMCDLL.BAT contains:

@echo off
CD /D %SystemRoot%\System32
del /q Msxml.dll
del /q Msxml2.dll
del /q Msxml3.dll
copy /Y %windir%\system32\DLLCACHE\Msxml.dll *.*
copy /Y %windir%\system32\DLLCACHE\Msxml2.dll *.*
copy /Y %windir%\system32\DLLCACHE\Msxml3.dll *.*
regsvr32 /s Msxml.dll
regsvr32 /s Msxml2.dll
regsvr32 /s Msxml3.dll 



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish