
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Qlik Sense Server Installer fails with One or more errors occurred. --> System.Management.ManagementException: Invalid class
Mar 23, 2023 7:07:54 AM
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:
- Check directly the WMI properties:
- Go to Computer management
- Open Services and Applications
- Right-click on WMI Control
- Click properties:
It should describe that "Successfully Connected to : <local computer>
And include information for:
Proccessor
Operating System
Service Pack
WMI Version
WMI Location - If an error or "invalid class" is displayed, then the repository is corrupted.
- Using the command prompt:
- Run the command line as admin
- Run the following: winmgmt /verifyrepository
- 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.