Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property Name, State To install a specific tool (e.g., Active Directory tools), run:
Add-WindowsCapability -Name "Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0" -Online To install ALL RSAT tools at once (useful for admin workstations), run this one-liner: rsat tools windows 10 20h2
How to Install and Use RSAT Tools on Windows 10 20H2: The Complete Guide Active Directory tools)