# How to install the PowerShell Active Directory module?

PowerShellMicrosoft TechnologiesSoftware & Coding

#### Powershell for beginners

15 Lectures 3.5 hours

#### Learning Task Automation using Windows PowerShell

35 Lectures 2.5 hours

#### The Complete PowerShell 7 course: Beginner To Advanced

Most Popular

145 Lectures 12.5 hours

To install the active directory module using PowerShell, you need Remote Server Administrator Tools (RSAT) on the server. It should be available in the Roles and Features section of the windows server operating system as shown below and you can enable it from the GUI as well.

If you can’t find the RSAT then you can download it from the below location, appropriate to your OS version.

Once you have the RSAT tool available in your system, you can use the PowerShell command to enable this feature. To get the Active Directory tools features available in the system, use the below command.

## Example

Get-WindowsFeature RSAT-AD*

## Output

We need RSAT-AD-Tools on the windows system and we will include all sub-features. You can also other AD tools as per your requirement.

## Example

Get-WindowsFeature RSAT-AD-Tools | Install-WindowsFeature -IncludeAllSubFeature

## Output

You can confirm if the AD tool is installed properly or not by running the dsa.msc command from Run or PowerShell Console. It will open AD MMC.

To install this feature on the remote computer, you can use -ComputerName parameter as shown in the below example,

Install-WindowsFeature RSAT-AD-Tools -ComputerName Test1-Win2k16 - IncludeAllSubFeature
Updated on 09-Nov-2020 09:40:04