Loading

How to Install and Import PowerShell Active Directory Module

The easiest way to install a PowerShell module for an active directory on a Windows system is by running this command via the PowerShell

If there is powershell AD module already installed on the VM, you can verify it by running the command

Get-Module –ListAvailable 

Open the PowerShell console as an administrator and run the following command to add AD PowerShell module

Import-Module ServerManager
Add-WindowsFeature -Name "RSAT-AD-PowerShell" –IncludeAllSubFeature

To check if the current VM already has the AD module , use the command:

Get-WindowsFeature RSAT-AD-PowerShell
AD module can be installed as via the GUI on Windows Server 2019/2016/2012 by adding a role as shown below

Once the Ad module is installed, we can display the list of available cmdlets available on the Active Directory PowerShell module as follows:

Get-Command -Module ActiveDirectory
(Visited 82 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.

Leave a Reply