To fix the 0x80041002 error, you need to reset WMI repository, restart WMI service, or rebuild WMI repository.