Add-windowscapability -online -name Rsat.activedirectory -
Remove-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~ To silently install without confirmation:
Here’s a detailed content piece you can use for documentation, a blog post, or a training guide on the topic: Topic: Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~ Overview The PowerShell cmdlet Add-WindowsCapability is used to install or remove Windows capabilities on a running Windows operating system. One common use case is installing RSAT (Remote Server Administration Tools) components, particularly those for managing Active Directory . add-windowscapability -online -name rsat.activedirectory
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: Remove-WindowsCapability -Online -Name Rsat