MMC has detected an error in a snap-in. It is recommended that you shut down and restart MMC

Stefano Milanesi 51 Reputation points
2022-05-31T18:10:20.037+00:00

Hi,
I get this error when I open "Internet Information Server (IIS) 6.0 Manager" and then I right click on "Properties" of "[SMTP Virtual Server #1]" item.

O:S: Windows Server 2022 Standard.

I read many similar articles about this error regarding other MMC but not IIS 6.0 Manager.

Can anyone help me?

Internet Information Services
{count} votes

2 answers

Sort by: Most helpful
  1. David Malko 106 Reputation points
    2022-11-10T21:44:50.117+00:00

    We found that doing the following worked, and can now edit the settings in the II6 Manager without errors (and without crashing when applying settings) every time:

    1. Stop SMTPSVC service [Display Name: Simple Mail Transfer Protocol (SMTP)]
    2. Stop IISADMIN service [Display name: IIS Admin Service]
    3. Edit "C:\Windows\System32\inetsrv\MetaBase.xml"
    4. Find: <IIsSmtpServer Location ="/LM/SmtpSvc/1"
    5. Add (Settings are alphabetical): RelayIpList=""
    6. Save file
    7. Start IISAdmin Service
    8. Start SMTPSVC service

    You can now open the Internet Information Services (IIS) 6.0 Manager (InetMgr6.exe) and work like normal. The setting above relates to the Access Tab > Relay Restrictions section, but doesn't set anything in it (i.e. "all except the below list" with a blank list).

    After setting this value you can change it to what you need it to be. (i.e. the value doesn't need to be 'null' for the fix to work, just so long as the variable is present in the file).

    The above has been tested on a few new installs of Windows Server 2022, and has worked for us every time. If you have done an upgrade there are some other things to consider (seems like the SMTP service is not installed after upgrade so will require a backup of the settings that can be applied post reinstalling the service. But that is discussed in other topics).

    PS: Remember to set the SMTPSVC service to start "automatically". By default its set to "manual".

    Source: https://serverfault.com/questions/1088555/server-2022-smtp-server-issue

    21 people found this answer helpful.

  2. Aswin Ramakrishnan 26 Reputation points
    2022-11-17T22:47:53.52+00:00

    What @David Malko said worked. In case you're wondering net stop iisadmin should stop the IISADMIN service. After you update the Metabase.xml file, do net start iisadmin to start it again (which should start the SMTP service and should prevent the error from happening)

    5 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.