0

If I try to open Device Manager, an error message will pop up:

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

I have already searched for solutions, but there was nothing that seemed like my problem. How do I troubleshoot this?

JW0914
  • 7,052
  • 7
  • 27
  • 48
Bennpoes
  • 37
  • 1
  • 2
  • 10

2 Answers2

0

First try the first and simplest repair: DISM and SFC .

Open cmd.exe with Run as Administrator.

DISM.exe /Online /Cleanup-image /StartComponentCleanup

DISM.exe /Online /Cleanup-Image /Restorehealth

SFC /SCANNOW

Restart when all the above is complete and test.

====

Then, if the initial repair did not work, use the Windows 10 Repair Install.

Go to the Media Creation Link:

https://www.microsoft.com/en-us/software-download/windows10

Windows 10 is running, so click on the Download button (not Upgrade Button) and select Run. If the Repair will not run as per above, use the Download button to create a USB Windows Installation key, then run Setup on the USB Key.

This will launch the Repair and proceed normally. Use the option to Keep Everything.

John
  • 46,167
  • 4
  • 33
  • 54
  • Hello John Thank you for your answer. I just have a few questions. How to open the DISM.exe. And after opening the DISM.exe. How do I enter ```Online /Cleanup-image /StartComponentCleanup.```And ```DISM.exe /Online /Cleanup-Image /Restorehealth``` – Bennpoes May 24 '21 at 14:00
  • 1
    I have yet to see this generic solution (DISM and SFC) solve anything ever. I think this might be the one case where it actually does something of use. Please let me know if this solution (posted over and over) was of any help. – Señor CMasMas May 24 '21 at 14:02
  • At the administrative command prompt, enter the complete dism string as I posted. I think component cleanup might likely replace (fix) devmgmnt – John May 24 '21 at 14:04
  • Is it normal if you type in after the `DISM.exe /Online /Cleanup-image /StartComponentCleanup` that it says `The system cannot find the path specified`? – Bennpoes May 24 '21 at 14:24
  • If you do all 3 steps (2 DISM, 1 SFC) and restart and still cannot find the Device Manager file, then proceed with the Windows 10 Repair Install outlined. – John May 24 '21 at 14:26
  • Hello John I just did all 3 steps. And it worked! Now I can open the Device Manager. I want to thank you so much for helping! Have a nice day! – Bennpoes May 24 '21 at 15:18
  • Thanks for the update and I am glad the 3 step process worked for you. – John May 24 '21 at 15:20
0

As an alternative to John's answer.

  1. Start > Run > MMC
  2. File > Add/Remove Snap-in (or ctrl+m)
  3. Select Device Manager from the list, and click Add >
  4. Click OK to close the dialog

enter image description here

spikey_richie
  • 8,367
  • 2
  • 25
  • 42