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


Possible Reason:

WMI service is corrupted.


Solution:

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

C:
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




2) Right click and run as Administrator.


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


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

AutoCount Accounting 2.0 & 2.1


AutoCount Accounting 1.8 / 1.9
AutoCount Payroll
AutoCount POS


AutoCount On The Go
AutoCount Accounting Plug-In Documentations