Active Directory PowerShell Module¶
The Active Directory PowerShell module provides cmdlets for administering and querying an AD environment from the command line.
-
Load the Active Directory module:
-
Enumerate domain information:
-
Enumerate users with Service Principal Names (SPNs):
-
Check for trust relationships:
-
Enumerate groups:
-
Get detailed group information:
-
Enumerate group members:
Using PowerView¶
PowerView is a powerful PowerShell tool designed to enhance situational awareness in an AD environment.
-
Get information about a specific domain user:
-
Enumerate domain group members (recursive):
-
Enumerate trust mappings:
-
Test administrative access to a computer:
Using SharpView¶
SharpView is the .NET implementation of PowerView, providing similar functionality for AD enumeration.
-
Get information about a specific domain user:
-
Enumerate all domain users:
Using Snaffler¶
Snaffler is a tool for locating sensitive data within an AD environment by enumerating network shares and directories.
- Execute Snaffler:
Using BloodHound¶
BloodHound is a tool for analyzing AD trust relationships and identifying potential attack paths.
-
Run SharpHound to collect data:
-
Ingest the data into BloodHound.
- Open the BloodHound GUI.
- Click Upload Data.
- Select the zip file generated by SharpHound.
- Analyze the data using pre-built and custom queries.