MMC cannot open the file

MMC cannot open the file

Today I had a problem with a server running Windows 2008 R2 and HyperV. We were unable to get into the HyperV manager and had  an error “MMC cannot open the file C:\Windows\system32\virtmgmt.msc”.

MMC cannot open the file C:\Windows\system32\virtmgmt.msc
MMC cannot open the file C:Windowssystem32virtmgmt.msc

In order to resolve this, I simply renamed the file virtmgmt to virtmgmt.old in the folder :

C:\Users\%Username%\AppData\Roaming\Microsoft\MMC

The Renamed virtmgmt file
The Renamed virtmgmt file

The file has probably got corrupted at some stage and by renaming the file, the next time you access the Management tool it gets recreated.

You may need to reregister the MSXML3.dll as well by going to start, run and typing in the following and click OK:

regsvr32 C:\Windows\system32\msxml3.dll

You should see the following message to say it has succeeded:

Dll registered successfully
Dll registered successfully

Hopefully this quick fix will work for other MMC files in the MMC folder such as wbadmin for windows backup, or eventvwr for the Event viewer.

Let me know if you’ve had success with any of the following :

“MMC cannot open the file C:\Windows\system32\eventvwr.msc”

“MMC cannot open the file C:\Windows\system32\wbadmin.msc”

“MMC cannot open the file C:\Windows\system32\ServerManager.msc”

“MMC cannot open the file C:\Windows\system32\SQLServerManager10.msc”

I hope this helps someone and if it does please leave a comment below. (It’s nice to receive feedback !)

Thanks for reading,

Ian

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

3 thoughts on “MMC cannot open the file”