Skip to content
If you're getting 'MMC has detected an error in snap-in and will unload it' message while working with snap-ins in Windows 10/8/7, here's how to fix it.

We all know Microsoft Management Console (MMC) manages snap-ins in Windows OS. Snap-ins such as Group Policy Editor, Device Manager, Event Viewer etc. etc. comes under MMC management. Thus if a snap-in is not working, you may need to troubleshoot MMC rather than the snap-in.

Recently, we came around an issue where an error occurs in a snap-in and MMC has to unfortunately unload it to prevent your machine from any unexpected harm. In some cases, this might also be related as snap-in failed to initialize.

The exact error message is as follows, in this case:

MMC has detected an error in snap-in and will unload it.

FIX MMC Has Detected An Error In A Snap-in And Will Unload It Windows 10

As you can see in the above shown error message, you’ve two options. You can either report the error and shut down MMC or unload the snap-in and let MMC be running. Most of these kind of errors can be solve by simply rebooting your system. You may run built-in troubleshooters in Windows 10, such as Hardware and Devices, System Maintenance troubleshooters to deal this issue.

However, if the problem still occurs even after restarting/troubleshooting the machine, you can try the fixes mentioned below:

FIX: ‘MMC Has Detected An Error In A Snap-in And Will Unload It’ In Windows 10/8/7

FIX 1 – Using System Properties

1. Press W8K + R and type sysdm.cpl in Run. Click OK or press Enter key.

System Properties Windows 10

2. In System Properties window, switch to Advanced tab, click Environment Variables.

FIX MMC Has Detected An Error In A Snap-in And Will Unload It Windows 10

3. Next, in the Environment Variables sheet, under System variables, highlight Path Variable, then click Edit.

FIX MMC Has Detected An Error In A Snap-in And Will Unload It Windows 10

4. Finally, add the following values to the Variable value and click OK. Make sure you do not remove or change existing Variable value here.

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM

FIX MMC Has Detected An Error In A Snap-in And Will Unload It Windows 10

Once done, reboot the machine and the issue should be fixed then.

If issue still persists, try FIX 2 mentioned below.

FIX 2 – Via File Explorer (Added 7 Jul, 2019, Referenced From Comments)

1. Open File Explorer.

2. Assuming Windows is installed on C: drive, go to C:\ProgramData\Microsoft\Event Viewer\Views.

3. Right click on View_XX.xml file (XX may be some number) there and delete it.

FIX MMC Has Detected An Error In A Snap-in And Will Unload It Windows 10

Checkout this video to illustrate this fix:

Hope this helps!

Related: MMC could not create the snap-in. The snap-in might not have been installed correctly.

Share this post on Facebook · Twitter.

12 Comments

  • I am trying to unload cortana because I have problem in that area so I’m trying to simplify and get out what I can.

    But when I run MMC I get the error ‘MMC has detected an error in the snapin….’

    I tried this fix. It hasn’t worked.

    Can I get some other suggestions maybe, hopefully ? :)

  • Kapil Arya

    ^^ To disable Cortana, you can refer this guide: https://www.kapilarya.com/how-to-completely-disable-cortana-in-windows-10

  • Hi,
    we are getting same issue in Event Viewers mmc has detected and error in a snap in and will unload it in Windows Server in window server 2012 .
    Can we apply same solution for window Server 2012

  • Kapil Arya

    ^^ Yes, you can.

  • no success …. server 2008 r2

  • no success…Windows 10 X64 (1903)

  • I just removed all View_XX.xml files at C:\ProgramData\Microsoft\Event Viewer\Views on my WS 2008 R2 and it fixed the issue.

  • Kapil Arya

    ^^ Thanks Andre for adding this! Further information in FIX 2 here: https://www.kapilarya.com/fix-event-viewer-not-working-in-windows-10.

  • Now fixed in this update: support.microsoft.com/en-us/help/4501371/windows-10-update-kb4501371

  • Kapil Arya

    ^^ Thanks for adding this!

  • Andre’s solution worked for me!! Thank you!!!

  • Kapil Arya

    ^^ Glad it helped!

  • Leave a Reply

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

    Recent Comments

    • Kapil Arya : ^^ Refer: https://www.kapilarya.com/fix-your-microsoft-account-wasnt-c...

      12 hours ago

    • Violeta : My Microsoft Account Wasn’t Changed To an administrator Account...

      17 hours ago

    • Kapil Arya : ^^ Yes, Fn + PrtScr keys also works on some machines. Thanks for addin...

      1 day ago

    • Ross Martin : on my tower PC, I just found that fn+prntscrn button actually does bri...

      1 day ago

    • Kapil Arya : ^^ Make sure you've allowed hidden items to appear in File Explorer (r...

      1 day ago