Active Directory Module

Requirements

This module interacts with AD through the Active Directory Web Service that mush be running on the domain controller.

To check if ADWS is running:

Test-NetConnection DC1 -port 9389

Installing Active Directory module

Installing on Windows 10 and 11

Add-WindowsCapability -online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0    

Installing on Windows Servers

You can check if the module in installed with:

Get-WindowsFeature -Name "RSAT-AD-PowerShell"

To install:

Install-WindowsFeature -Name "RSAT-AD-PowerShell" –IncludeAllSubFeature

Running AD Module without RSAT or admin privileges

To be able to run Active Directory module without installing RSAT you only require the DLL location inC:\Windows\Microsoft.NET\assembly\GAC_64\Microsoft.ActiveDirectory.Management from a computer with RSAT installed.

We are then able to grab the signed DLL and drop it on the computer we want to enumerate from and simply import the DLL as a module:

Import-Module .\Microsoft.ActiveDirectory.Management.dll

If you plan on zipping the DLL to transfer over, you will need to unblock the zip file before unzipping.

UnBlock-File .\ADModule.zip

Last updated