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
during installation
+ CategoryInfo : OperationStopped: (:) [], CimException
+ FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerMan
ager.Commands.AddWindowsFeatureCommand
+ 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!