A compilation of functions to simplify scripts to manage AD tasks

Download as .zip Download as .tar.gz View on GitHub



This compilation contains functions to simplify the management of Active Directories. Check the examples to see how to find computers, create new users, and much more.

(tested with: Windows Server(r) 2003 R2, Windows Server(r) 2008, Windows Server(r) 2008 R2)

Table of Contents


Microsoft introduced a built-in PowerShell module for managing Active Directory in Windows 2008R2(r). However, I have two problems with this module:

  • It is only available on the server and I want to be able to run stuff (most of all Get-* commands) from my local computer
  • It doesn’t work with Windows 2008 and 2003 ADs and DCs

So I decided to write my own set of functions, which soon turned into a complete module. Since it is supposed to be a tool to work mainly with older servers, it’s time to finally publish it (Although it is not 100% yet).

There might still be bugs in the functions.

This was first published @ on 2011/07/18



Load the Module

Unzip the content of the file to: %userprofile%\Documents\WindowsPowerShell\Modules\PsADManagement, open powershell and run Import-Module PsADManagement


Yet to come