Install RSAT via Powershell » 05 February 2024

I needed to install RSAT on a build agent, so using the “optional features” GUI was not possible.

Get a list of RSAT components:

Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property Name, State

Install what you need, e.g.:

Add-WindowsCapability -Name "Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0" -Online