These pages cover SQL Clone 4, which is not the latest version. Help for other versions is also available.
"ManagementException: Invalid class" while creating/deleting images or clones
Published 30 November 2018
This exception may indicate that the affected machine's WMI repository is corrupted. This is a data store maintained by Windows.
Depending on the exact cause, a diagnostic step is to open a PowerShell window and run:
- Get-Disk
- Get-Command -ParameterType MSFT_DiskImage
If either command results in an error, it may be necessary to restore functionality by repairing the WMI repository.
- net stop winmgmt /y
- Winmgmt /salvagerepository %windir%\System32\wbem
- Winmgmt /resetrepository %windir%\System32\wbem
- net start winmgmt
You will need to restart the affected machine after running these commands.