I tried to change the installed WebServer features on a Windows Server 2008 R2 box and hit the following error:
Installation of [Web Server (IIS)] Management Service failed. Attempt to
install Management Service failed with error code 0x80070643. Fatal error
+ CategoryInfo : OperationStopped: (:) , CimException
+ FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerMan
+ PSComputerName : localhost
So I tried to just uninstall the WebServer and ApplicationServer roles and start over but I got the same error again.
Eventually I found there was a pending update when I tried rebooting the box. After the reboot everything installed correctly.
Hope this saves others some time.
Happy Feature Installs!