Question: how to install active directory through powershell?
Answer: Type Start PowerShell and press Enter within the Command Prompt window to open a new Windows PowerShell console window. 2. Type Add-WindowsFeature AD-Domain-Services and press Enter to install Active Directory Domain Services.