AdsiPS
AdsiPS is a PowerShell module to interact with Active Directory using the .NET Framework (ADSI, System.DirectoryServices namespace,...)
Note: This module currently only works on Windows Operating Systems.
Usage
Option A: Download from PowerShell Gallery
Only from PowerShell v5.1 (on Windows OS only)
Install-Module -name ADSIPS
Option B: Manual download from GitHub
- Download the repository
- Unblock the zip file
- Extract the folder to a module path (e.g. $home\Documents\WindowsPowerShell\Modules)
- Run
build.ps1
(exists in project root).- NOTE: If you get an error after running
build.ps1
- please usebuild.ps1 -InstallDependencies
- NOTE: If you get an error after running
build.ps1
creates a folder called~\buildoutput\AdsiPs
in the directory whichAdsiPs
was saved to- Inside of
\buildoutput\AdsiPs
there is a file calledAdsiPs.psm1
- Run
Import-Module -Path "C:\Path\To\buildoutput\AdsiPs\AdsiPs.psm1"
to import theAdsiPs
module
Documentation
Thanks to all our Contributors!
- @LazyWinAdmin
- @MickyBalladelli
- @christophekumor
- @omiossec
- @oze4
- @andrewtchilds
- @NicolasBn
- @gerane
- @Skoetting
- @LaurentLienhard
- @JM2K69
Resources
- MSDN is a great resource if you want to find more information on the NET classes to use. See System.DirectoryServices
- Interesting projects using different approaches to reach out to Active Directory in PowerShell/c#
- ADAudit by @darkoperator
- ADSI on powershell.com by @TobiasPSP by Tobias Weltner
- ADRecon from @sense-of-security
- PowerView from @PowerShellMafia team
- Invoke-Kerberoast from @EmpireProject team
- PSAD by @zloeber
- Test-ActiveDirectory by @markwragg
- AdEnumerator(LDAP) by @chango77747
- Grant-ADPermission by @edemilliere
- ADSec by @FriedrichWeinmann