Scenario: You are trying to install a Windows Capability via PowerShell, such as the AD Tools, however you receive this error: Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0954
Solution:
On your computer, go to:
1. GPEdit.msc
2. Computer Configuration –> Administrative Templates –> System
3. Open Specify settings for optional component installation and component repair
…4. Select Enabled
…5. Select Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)
6. In your Powershell, run gpupdate /force
7. Now, try the install again.
8. Victory! Drink a beer.