Try a program called "Windows Repair" (www.tweaking.com) and make sure you - at least - tick "Repair WMI". The program can solve A LOT OF (not all) window problems. I don't know whether this program ("Windows Repair") is able to restart the WMI service. "Window Repair" is a first step to a more stable computer system. Perhaps the Piriform moderators can create a FAQ section/thread here on the forum ? Where an answer can be provided for a number of recurring errors in Speccy ? And their solutions ?
KapnJackSparrow's three commands worked great for me, just cut and paste into a command window. Some programs ran or gave messages for the third command, just closed or ignored. ran up speccy all fine.
If you want to make it a batch file then you need to use %% in place of a single %.