SharePoint failed to connect to the configuration database error

Source: Internet
Author: User

This error is fixed when sharpoint is installed. Check by msdn and no problem is found. When you reinstall sql2005, you will find that it was an SQL problem. You need to fix WMI and the SQL installation self-check fails. Use the script to fix the issue.

@ 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

 

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.