Windows Server – Feature Install – Error: 0x80073712

While trying to install a new feature on a Windows Server 2012 R2 system using Powershell, I received the following error:
#Install Feature
Install-WindowsFeature -Name Desktop-Experience -IncludeAllSubFeature

Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The component store has been corrupted. Error: 0x80073712
At line:1 char:1
+ Install-WindowsFeature -Name Desktop-Experience –IncludeAllSubFeature
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   No             Failed         {}
I had to use the DISM utility to repair the Component Store. Using a ‘cmd’ window as a user with local Administrator permissions to the system:
DISM /Online /Cleanup-Image /CheckHealth && DISM /Online /Cleanup-Image /ScanHealth && DISM /Online /Cleanup-Image /RestoreHealth