question

Martinzheng-7463 avatar image
0 Votes"
Martinzheng-7463 asked Cathyji-msft answered

SQL Server 2019 express installation failed

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-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Cathyji-msft avatar image
0 Votes"
Cathyji-msft answered

Hi @Martinzheng-7463,

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.