Enabling Active Directory Cmdlets

by Nov 23, 2021

On both server and client, Windows ships with the “ActiveDirectory” PowerShell module. It adds numerous cmdlets to manage users and resources in the Active Directory.

By default, the module is hidden though. To enable it on clients, with Administrator privileges run this:

$element = Get-WindowsCapability -Online -Name "Rsat.ActiveDirectory.DS*" 
Add-WindowsCapability -Name $element.Name -Online 

On a server, again use Administrator privileges and run this:

Install-WindowsFeature RSAT-AD-PowerShell
Add-WindowsFeature RSAT-AD-PowerShell


Twitter This Tip! ReTweet this Tip!