Saturday, May 8, 2010

Unable to install SQL..WMI Error

Issue - The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error: 2147749904 (0x80041010)


Cause:

     WBEM_E_INVALID_CLASS

                2147749904 (0x80041010) Specified class is not valid


Resolution: If you encounter above error while installing SQL please follow below steps to resolve the same.


• Use the following command to detect and repair a corrupted WMI Repository:


                          rundll32 wbemupgd, RepairWMISetup


• Re-registering the WMI components


The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLs and .EXE files in %windir%\sysWOW64\wbem.


  • To re-register the WMI components, run the following commands at the command prompt:
                                         •cd /d %windir%\system32\wbem
                                         •for %i in (*.dll) do RegSvr32 -s %i
                                         •for %i in (*.exe) do %i /RegServer