SQL Server 2019 express installation failed

Martin zheng 1 Reputation point
2021-07-22T19:33:28.367+00:00

The installation failed as "The MOF compiler could notconnect with the WMI server", a lot people talk about running sqlmgmproviderxpsp2up.mof, but there is no this file under folder 150.

I would like to know where to download sqlmgmproviderxpsp2up.mof, and it seems this file was not packed inside the download file

Thank you

SQL Server Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2021-07-23T03:30:09.107+00:00

    Hi @Martin zheng ,

    sqlmgmproviderxpsp2up.mof is located at C:\Program Files (x86)\Microsoft SQL Server\150**Shared**. Please check this again in your environment.

    Please uninstall the previous failed installation then run an new installation again.

    Quote from the blog Error: "The MOF compiler could not connect with the WMI server".

    Please open a command prompt as administrator and run the following command:

    mofcomp "%programfiles(x86)%\Microsoft SQL Server\150 \Shared\sqlmgmproviderxpsp2up.mof"

    Then open the Services control panel, restart the Windows Management Instrumentation service, and then do a manual install of the SQL. Use a new instance or run an uninstall of the previous instance and then make a "fresh" install.

    If it is not work, please check if this similar thread could help you. And please share us SQL server setup log for analysis.


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.

    0 comments No comments

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.