You can use the following one line of PowerShell to easily install all of the available Remote Server Administration Tools (RSAT) in one go. I end up running this after every Windows feature update., Saves wasting time with a GUI.
Open an admin PowerShell prompt
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
Individuals Tools
If instead you only want to install a single tool or a small number. This command will give you a list of all of the available RSAT tools
Get-WindowsCapability -Name RSAT* -Online

You can then install the individual tool using
Add-WindowsCapability –online –Name “<tool name>”
i.e
Add-WindowsCapability –online –Name “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0”
Checking the install status
This command will show which tools (if any) you currently have installed
Present = Installed
Not Present = Not installed
Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property DisplayName, State

Minor issue with your command syntax.
Take a look at the “-Online” after Add-WindowsCapability and compare it to the other “-Online”. One is a regular hyphen, the other is an em dash (long dash). When you try to paste it into PowerShell, the em dash doesn’t translate properly.
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online
Hi Josh,
Thanks for pointing that out, I will get the post updated 😀
Phil