When installing RSAT tools onto Windows it fails with the error code 0x800f0954.
PS C:\> Get-WindowsCapability -Name RSAT.ActiveDirectory* -Online | Add-WindowsCapability -Online
Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0954
At line:1 char:61
+ ... y -Name RSAT.ActiveDirectory* -Online | Add-WindowsCapability -Online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand
To fix:
- Run "gpedit.msc" as Administrator to edit your local computer policy.
- Navigate to "Computer Configuration\Administrative Templates\System"
- Locate setting "Specify settings for optional component installation and component repair"
- Set to Enabled and check the box “Download repair content and optional features directly from Windows Updates instead of Windows Server Updates Services (WSUS)“.
- Click Apply and OK.
Now try the install again and it should work as below:
PS C:\temp> Get-WindowsCapability -Name RSAT.ActiveDirectory* -Online | Add-WindowsCapability -Online
Path :
Online : True
RestartNeeded : False