Install RSAT Features on Demand on Windows 10 1809 Using PowerShell

Recently I came across an error while trying to install RSAT on Windows 10 1809.


Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0907At line:28 char:100+ ... 'NotPresent'} | foreach {Add-WindowsCapability -Online -Name $_.Name}+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException+ FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

To fix this error i had to do the following.


1:) Open gpedit.msc as administrator

2:) In gpedit.msc, expand Computer Configuration -> Administrative Templates ->System. Double click on the policy  “Specify settings for optional component installation and component repair”, and enable it.

And tick ‘Contact Windows Update directly to download repair content instead of Windows Server Update Services (WSUS)’

3:) Then run powershell shell as administrator, and type in the following command to install all of RSAT.

Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online

4:) Go to windows administrative Tools and run the application you need.