As of 1809, tools like RSAT (Remote Server Administration Tools) can no longer be installed in the traditional manner, they must now be installed with either DISM or Add-WindowsCapability.
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
While the above code will install the AD RSAT tools, it’s a little ugly looking. Lets say you wanted to install the whole RSAT tool suite, you’d need to know the name of each of the oddly named tools, or will you?
Get-WindowsCapability -Online -Name RSAT* | Select-Object DisplayName, State
DisplayName State ----------- ----- RSAT: Active Directory Domain Services and Lightweight Directory Services Tools NotPresent RSAT: BitLocker Drive Encryption Administration Utilities NotPresent RSAT: Active Directory Certificate Services Tools NotPresent RSAT: DHCP Server Tools NotPresent
So now we know how to list the tools we want in an orderly fashion, how do we go about installing them in a quick and easy way?
Get-WindowsCapability -Online -Name RSAT* | Add-WindowsCapability -Online
Path : Online : True RestartNeeded : False Path : Online : True RestartNeeded : False
Get-WindowsCapability -Name RSAT.R* -Online | Select-Object DisplayName, State
DisplayName State ----------- ----- RSAT: Remote Access Management Tools Installed RSAT: Remote Desktop Services Tools Installed
And its that easy. Note, if you get the error 0x800f0954, a fix that I have found is to open your local group policy, go to Computer Configuration > System > Specify settings for optional component installation and component repair. Enable this setting and check the box for download repair content and optional features directly from Windows Update.