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.

Prérequis

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

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

Windows Server

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

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 gou error 0x800f0954, install .NET Framework 3.5

Windows 1803 et inférieur

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

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 other PowerShell module?

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

Leave a Reply

1 × 3 =

Close Menu