Enumeration
Without Active Directory module installed
Get Current Domain Info
[System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()Get Domain Trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()Get Forest Info
[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()Get Forest Trust Relationships
([System.DirectoryServices.ActiveDirectory.Forest]::GetForest((New-Object System.DirectoryServices.ActiveDirectory.DirectoryContext('Forest', 'forest-of-interest.local')))).GetAllTrustRelationships()Enumerate Domain Users
Get User-related Environment Variables (cmd.exe)
set uList all Usernames
List Administrators
List all Info about specific user
View All Users with Description Field Set
Using Active Directory PowerShell module
View all Active Directory commands
Display Basic Domain Information
Get all Domain Controllers by Hostname and Operating System
Get all Fine Grained Password Policies
Get Domain Default Password Policy
Backup Active Directory System State Remotely
AD User Enumeration
Find a specific string in a certain user's attribute
Get All Active Directory Users in Domain
Get All Users From a Specific OU
Get AD Users by Name
Get All Disable User Accounts
Disable User Account
Enable User Account
Get All Accounts with Password Set to Never Expire
Find All Locked User Accounts
Unlock User Account
List all Disabled User Accounts
Force Password Change at Next Login
Move a Single User to a New OU
Move Users from one OU to another using a CSV file
AD Group Commands
Get All members of a Security group
Get All Security Groups
Add User to Group
Export Users From a Group
Get Group by keyword
Import a List of Users to a Group
AD Computer Commands
List All Computers
List All Computers by Name
Get All Computers from a specific OU
Get a Count of All Computers in Domain
Get all Windows 10 Computers
Get a Count of All computers by Operating System
Delete a single Computer
Delete a List of Computer Accounts
Delete Computers From an OU
Using PowerView
Using BloodHound
Group Policy
Get all GPO related commands
Get all GPOs by status
Backup all GPOs in the Domain
Enumeration using nltest and .Net
Get Domain Information
Get Current Domain Info
View Domain Forest Info
View Domain Trust Information
View All Domain Controllers
View DC for Current Session
Kerberos
Get domain name and DC the user authenticated to
Get All Logged on Sessions, Includes NTLM & Kerberos
View Current Kerberos Tickets
View Cached Krbtgt
Other useful AD enumeration tools
Last updated