Fix: “MMC has detected an error in a snap-in” Event Viewer Windows 10

On Windows 10 1903, 1809 and other versions, you might have found an error message – “MMC has detected an error in a snap-in and will unload it”. The problem occurs when you attempt to expand, view or create Custom Views. Moreover, the app might stop responding or close. The same error might also happen when using Filter Current Log in the Action menu with built-in views or logs. Microsoft includes this bug in Known issue list for the said versions. Now the status of the issue has been changed to Mitigated. This means you can fix Event Viewer Windows 10 1903, 1809 issue.

MMC has detected an error in a snap-in and will unload it Event Viewer issue started after installing KB4503293 on Windows 10 1903. Furthermore, other versions who installed the cumulative updates rolled out on 11 June 2019 have also got the bug. But Microsoft has worked on this and now a resolution is available.

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

Way to fix Event Viewer Windows 10 error occurred on getting Cumulative update 11 June

As the workaround of this issue, copy and paste the following function into a PowerShell window and press Enter. Subsequently, you will be able to run the get-EventViewer command to view your Custom Views. Note that you will have to re-type the function each time separately after you launch a new PowerShell window. Important to know that the get-EventViewer function will only let you see previously defined Custom Views.

function get-EventViewer { Write-Output "List of custom views on the machine" Write-Output "" Get-ChildItem "C:\ProgramData\Microsoft\Event Viewer\Views" -Filter *.xml | % { select-xml -Path $_.FullName -xpath "//Name" } | Select-Object -ExpandProperty Node | Select-Object -ExpandProperty InnerXml Write-Output "" $view_name = Read-Host "Enter the name of custom view to execute" # Get the file name of the view $ViewFile = Get-ChildItem "C:\ProgramData\Microsoft\Event Viewer\Views" -Filter *.xml | where-object { (Select-Xml -Path $_.FullName -xpath "//Name").Node.InnerXml -eq $view_name } Get-WinEvent -FilterXml ([xml]((Select-Xml -Path $ViewFile.FullName -XPath "//QueryList").node.OuterXml)) }

Microsoft is working on a resolution for – MMC has detected an error in a snap-in and will unload – issue and possibly send a patch in late June.

You may experience Event viewer error after getting below given latest cumulative update (LCU), Monthly Rollups and Security Only released on 11 June 2019 –

KB4503293 LCU for Windows 10, version 1903.
KB4503327 LCU for Windows 10, version 1809 and Windows Server 2019.
KB4503286 LCU for Windows 10, version 1803.
KB4503284 LCU for Windows 10, version 1709.
KB4503279 LCU for Windows 10, version 1703.
KB4503267 LCU for Windows 10, version 1607 and Windows Server 2016.
KB4503291 LCU for Windows 10, version 1507.
KB4503276 Monthly Rollup for Windows 8.1 and Windows Server 2012 R2.
KB4503290 Security-only update for Windows 8.1 and Windows Server 2012 R2.
KB4503285 Monthly Rollup for Windows Server 2012 and Windows Embedded 8 Standard
KB4503263 Security-only update for Windows Server 2012 and Windows Embedded 8 Standard-
KB4503292 Monthly Rollup for Windows 7 SP1 and Windows Server 2008 R2 SP1
KB4503269 Security-only update for Windows 7 SP1 and Windows Server 2008 R2 SP1
KB4503273 Monthly Rollup for Windows Server 2008 SP2
KB4503287 Security-only update for Windows Server 2008 SP2

Source – KB4508640

Sharing is caring    Share Whatsapp

 
Topics:  Windows
  
About Sunita
Love to play with Windows 11 and 10. Suggestion - Going for Registry change or system files edit then remember to take a backup or create a restore point before Starting.

  1. Amitab Kumar Sah

    says:

    This helps to fix the issue

  2. fGünther Bosch

    says:

    Thanks for the investigation and the workaround.