Restart the computer to trigger Windows to automatically regenerate the repository.
For administrators who prefer the command line or need to enable this via a script/batch file. wmi enable
If the service is enabled but returns errors (like 0x80041010 or "WMI repository is corrupted"), you may need to reset the repository. Restart the computer to trigger Windows to automatically
Set Startup Type to to ensure it persists after reboots. Via Command Line : wmi enable