Lighting won't build (KBM & other solutions already tried)

Here is the solution:

Also read this article:

To fix this error I did this In PowerShell (Admin):

net stop winmgmt /y
winmgmt /resetrepository
winmgmt /salvagerepository
winmgmt /verifyrepository

Done. The lighting now builds successfully.

PS: If some commands were not necessary - please correct me.