Issue: after I build Windows 2012 server and delivered to Application team, application tried to add IIS role on windows 2012 server and suddenly noticed that they cannot add any roles due to when they click add roles and features button on server manager, it shown as below

and when I refereshed the manager, it shown below error refresh failed
quick Fix:
open command prompt with admin rights and execute as below
cd C:\Windows\System32\wbem\AutoRecover
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
once execute it, it would automatically recover all the mof file as below
that it, now you are free to do anything on server
and when I refereshed the manager, it shown below error refresh failed
quick Fix:
open command prompt with admin rights and execute as below
cd C:\Windows\System32\wbem\AutoRecover
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
once execute it, it would automatically recover all the mof file as below
that it, now you are free to do anything on server