SQL Server 2022 Express installation - how to fix 'error while checking Rules of Sql Server set up'?

Mariel 0 Reputation points
2024-05-29T12:02:47.3133333+00:00

Hello, I am having trouble installing SQL Server 2022 Express Edition, Basic installation type.

I keep getting this error during installation: "There was an error while checking Rules of Sql Server setup"

I have so far tried:

  1. Restarting my laptop
  2. Running the installation as admin
  3. Disabling antivirus software for installation

These are the txt files I can find in: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20240529_215425

DESKTOP-S25KPNA_20240529_215425_Watson_Rules.txt

Summary_DESKTOP-S25KPNA_20240529_215425_Rules.txt

Detail_Rules.txt

Please help. Thank you in advance.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,150 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MikeyQiaoMSFT-0444 3,190 Reputation points
    2024-05-30T08:04:30.8166667+00:00

    Hi,Mariel

    Run cmd Check if the WMI service is running.

    sc query winmgmt
    

    Use this command to check the consistency of the WMI (Windows Management Instrumentation) repository:

    winmgmt /verifyrepository
    

    If WMI repository is inconsistent,fix it by this:

    winmgmt /resetrepository
    

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.