: By default, Windows looks at Windows Update to find the files.
-Name rsat.activedirectory : This specifies the name of the capability to add. In this case, rsat.activedirectory refers to the Active Directory module within RSAT. RSAT (Remote Server Administration Tools) includes a collection of tools for managing Windows Servers from a client machine, and the Active Directory capability within RSAT provides tools for managing Active Directory. add-windowscapability -online -name rsat.activedirectory
Start-Process PowerShell -Verb RunAs
-Online : This parameter specifies that the action is to be taken on the online (currently running) Windows instance. Instead of operating on an offline Windows image, you're modifying the live, running system. : By default, Windows looks at Windows Update
The PowerShell command Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 is the standard way to install Active Directory Domain Services and Lightweight Directory Services Tools on modern versions of Windows 10 and 11. TSplus +1 Command Breakdown Add-WindowsCapability : The primary cmdlet used to install optional Windows features (known as "Capabilities on Demand"). -Online : Tells the command to apply changes to the operating system currently running on the local machine. -Name : Specifies the exact internal identity of the package. Note that the full name typically includes versioning (e.g., you're modifying the live