Share via

SQL server 2022 installation fails at MOF stage on Windows server 2025 24H2 (26100)

Rahul K Nair 0 Reputation points
2026-02-12T08:45:48.5033333+00:00

I am trying to install the windows HLK controller + studio on Windows server 2025 24H2 (26100) and failed at SQl installation leading to get to know SQL 2022 server edition installation fails at MOF stage of intallation with error "MOF connection failing to WMI".
Dose this a known issue? what is the workaround?

Verified belo check lists and no issues
WMI service works : PASS
Repository consistent : PASS
MOF compiler works : PASS
Permission : PASS
NameSpace exists : PASS .NET version : 4.8.1

SQL Server Database Engine
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-12T08:45:58.24+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The issue you are encountering with the SQL Server 2022 installation failing at the MOF stage due to a "MOF connection failing to WMI" is indeed a known problem. This typically indicates that there are issues with the Windows Management Instrumentation (WMI) service, which can be caused by a damaged WMI repository or other related problems.

    To work around this issue, you can try the following steps:

    1. Repair the WMI Repository: You can attempt to repair the WMI repository by running the following command in an elevated Command Prompt:
         winmgmt /salvagerepository
      
      After this, restart the WMI service:
         net stop winmgmt
         net start winmgmt
      
    2. Check WMI Service Status: Ensure that the WMI service is running. You can check this in the Services management console (services.msc).
    3. Clean Up Previous Installations: If there have been previous failed installations, remnants of those installations may cause issues. Ensure that all SQL Server components are completely removed before attempting a new installation.
    4. Registry Cleanup: Open the Registry Editor and check for any leftover SQL Server keys under the following paths, and delete them if they exist:
      • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
      • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
      • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
    5. Use Latest Installation Media: Make sure you are using the latest version of the SQL Server 2022 installation media, as outdated files can lead to installation failures.

    If these steps do not resolve the issue, you may consider creating a virtual machine to run the SQL Server installation, as this can sometimes bypass underlying OS issues.


    References:

    0 comments No comments

Your answer

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