ADTips#1 – Install PowerShell Active Directory module

To run PowerShell command for Active Directory (Get-ADUser, Get-ADComputer, Get-ADGroup, New-ADUser, etc.), you need to install the Active Directory module first. The installation depends on your Windows version.

Prerequisites

This module needs .NET Framework 3.5. For the recent Windows versions, you can enable it with :

dism /online /Enable-Feature /FeatureName:”NetFx3″

Installation according to Windows Server version

Windows 1810 and above

For client versions from Windows 10 october 2018 (Windows 1810), install Remote Server Administration Tool (RSAT) AD with Add-WindowsCapability:

If you get error 0x800f0954, install .NET Framework 3.5

Windows 1803 and below

For client versions Windows 7/8/8.1 and Windows 10 1803 and below, install RSAT AD via DSIM:

Windows Server 2012/R2

On Windows Server, the installation is made with the following PowerShell command:

Load the Active Directory module

Finally, after the AD module installation, if you run any AD CMDlet, PowerShell will automatically load the AD module. But in older PowerShell version, you need to load the module:

Import-Module ActiveDirectory

And for the others PowerShell modules?

To enable other PowerShell module, go to the article with direct links to RSAT!

Leave a Reply

one × three =

Close Menu