Troubleshooting: SQL Installation error-rule “Windows Management Instrumentation (WMI) service” failed

From AutoCount Resource Center

Question: Failed to install SQL server, the rule “Windows Management Instrumentation (WMI) service” failed. Why?

Version: 1.8/ 1.9 / 2.0

Wmi failed1.png

Possible Reason:

WMI service is corrupted.


1) Create a FixWMI.bat file. Copy and paste the following content into Notepad and save as All Files, rename the file name as FixWMI.bat.

net stop winmgmt

cd %systemroot%\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot

Wmi failed2.png

Wmi failed3.png

2) Right click and run as Administrator.

Wmi failed4.png

3) Type '“Y” and then press Enter.

Wmi failed5.png

4) Once completed, restart your computer. Then install again SQL Server and it should be installed successfully.

Note: Please seek assistance from your software dealer if the problem persists after performing the suggested steps.

By: Benjamin 220908, Lay Swan 220922, P220926

Go to menu

IconAcc20.PNG AutoCount Accounting 2.0 & 2.1

IconAcc188.PNG AutoCount Accounting 1.8 / 1.9
Wiki-Payroll.png AutoCount Payroll
Wiki-POS.PNG AutoCount POS

Wiki-AOTG.PNG AutoCount On The Go
Wiki-Accounting-Plugin.png AutoCount Accounting Plug-In Documentations