My blog post:

RSAT (Remote Server Administration Tools) in Windows 10 v1809, v1903 and v1909 are no longer a downloadable add-on to Windows. Instead its included as a set of  "Features on Demand" directly in Windows.

The script will only run on Windows 10 v1809 or v1903 or v1909.

The script requires administrative rights as well as access to the Internet (RSAT is installed through Microsoft Update).

The script is built around Get-WindowsCapability, Add-WindowsCapability and Remove-WindowsCapability.

The script comes with 4 options: