For anyone whos been looking for a fix forever this is what worked for me: https://learn.microsoft.com/en-us/answers/questions/684166/failed-to-initialize-all-required-wmi-classes
I followed the answer by Limitless Technology by running cmd prompt as admin and typing cd C:\>windows\system32\wbem then copying and pasting all the lines they have. Worked for me.