Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW

Qlik Sense Server Installer fails with One or more errors occurred. --> System.Management.ManagementException: Invalid class

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Qlik Sense Server Installer fails with One or more errors occurred. --> System.Management.ManagementException: Invalid class

Last Update:

Mar 23, 2023 7:07:54 AM

Updated By:

Sonja_Bauernfeind

Created date:

Mar 23, 2023 6:08:17 AM

The Qlik Sense installer fails with an error describing to call Qlik Support or to instead perform a silent installation. 

The Qlik Sense Installation logs show:

Unexpected error during configuration: System.AggregateException: One or more errors occurred. ---> System.Management.ManagementException: Invalid class

 

Environment

Qlik Sense Enterprise on Windows 
Microsoft Windows 2012 to 2016

 

Resolution

The note to contact Qlik Support is misleading. The issue is caused by a corrupt repository for the WMI (Windows Management Instrumentation).

For information on how to resolve this issue, see winmgmt - Win32 apps | Microsoft Learn

You can verify the integrity of your Windows OS files by running sfc /scannow in a command prompt. This may lead to further information about any required repairs. 

 

Cause 

A corrupt repository for the WMI (Windows Management Instrumentation). There are several way to confirm if this is in fact the problem:

  1. Check directly the WMI properties:
    1. Go to Computer management
    2. Open Services and Applications
    3. Right-click on WMI Control
    4. Click properties:

      It should describe that "Successfully Connected to : <local computer>

      And include information for:

      Proccessor
      Operating System
      Service Pack
      WMI Version
      WMI Location

    5. If an error or "invalid class" is displayed, then the repository is corrupted. 

  2. Using the command prompt:
    1. Run the command line as admin
    2. Run the following: winmgmt /verifyrepository
    3. If it returns: Repository is inconsistent then the repository is consider corrupted. 

 

If the above steps didn't solve your problem there is an alternative solution by creating the batch file below. This one will reset your current WMI configuration, and generate a new one after a system reboot. This also worked in cases where the above check under point 2b sends the response Repository is consistent but Qlik Sense would still not install.

 

 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

 

To start it save the block above as cleanwmi.bat in e.g. C:\temp\ and run the script as an administrative user. If its finished please reboot the machine.

Labels (1)
Version history
Last update:
‎2023-03-23 07:07 AM
Updated by: