Add-windowscapability -online -name Rsat.activedirectory ^hot^ Direct

: Copy the command, paste it into the PowerShell window, and press Enter:

Expected output: State = Installed

Add-WindowsCapability -Online -Name rsat.activedirectory add-windowscapability -online -name rsat.activedirectory

The home of Script Debugger