Add-windowscapability -online -name Rsat.activedirectory [portable] -
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~ -Source D:\sources\sxs -LimitAccess (where D: is your mounted ISO drive) To remove RSAT AD tools:
Specifically, the command:
Remove-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~ To silently install without confirmation: add-windowscapability -online -name rsat.activedirectory
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~ | Out-Null The Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~ command is the modern, Microsoft-recommended method for installing RSAT Active Directory tools on Windows 10/11 and Server. It replaces older methods like downloading RSAT MSUs or using dism /add-capability . Add-WindowsCapability -Online -Name Rsat