Check following answer from this
link
If this error ocurred when you install SQL Server 2008 R2, try to do this one:
Open console command (Run->CMD with administrator privileges).
net stop winmgmt
Rename folder %windir%\System32\Wbem\Repository to other one, for backup purposes (for example _Repository).
net start winmgmt
Also refer following link
link[
^]