Solution for failing to execute the SQL Server System Configuration checker due to WMI Configuration

Source: Internet
Author: User

Reinstall the machine today and re-install SQL 2005. The following problems are encountered:

Solution for failing to execute the SQL Server System Configuration checker due to WMI Configuration

I searched the internet, but there were not many methods. I found a useful one and posted it to you.

Create a Temporary Folder first

Here I am c: \ Temp

Create a fixwmi. CMD file.

The file content is as follows:

@ Echo on
CD/d c: \ Temp
If not exist % WINDIR % \ system32 \ WBEM goto tryinstall
CD/d % WINDIR % \ system32 \ WBEM
Net stop Winmgmt
Winmgmt/kill
If exist rep_bak RD rep_bak/S/Q
Rename repository rep_bak
For % I in (*. dll) Do regsvr32-S % I
For % I in (*. EXE) Do call: fixsrv % I
For % I in (*. MOF, *. MFL) Do mofcomp % I
Net start Winmgmt
Goto end

: Fixsrv
If/I (% 1) ==(wbemcntl.exe) goto skipsrv
If/I (% 1) ==(wbemtest.exe) goto skipsrv
If/I (% 1) ==(mofcomp.exe) goto skipsrv
% 1/regserver

: Skipsrv
Goto end

: Tryinstall
If not exist wmicore.exe goto end
Wmicore/s
Net start Winmgmt
: End

 

Run fixwmi. cmd.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.