PowerView

Active Directory Enumeration Checklists with PowerView

Using PowerView

PowerView is a PowerShell tool to gain network situational awareness on Windows domains. It contains a set of pure-PowerShell replacements for various windows "net *" commands, which utilize PowerShell AD hooks and underlying Win32 API functions to perform useful Windows domain functionality.

Tools:

Import PowerView

. C:\AD\Tools\PowerView.ps1

Get-DomainController

Enumerates the domain controllers for the current or specified domain. By default built in .NET methods are used. The -LDAP switch uses Get-DomainComputer to search for domain controllers.

Get-DomainController
Get-DomainController -Domain domain.lab
Get-DomainController -Domain domain.lab -LDAP

Get-DomainUser

Builds a directory searcher object using Get-DomainSearcher, builds a custom LDAP filter based on targeting/filter parameters, and searches for all objects matching the criteria.

# Enumerate Domain User
Get-DomainUser
Get-DomainUser -Domain domain.lab 
Get-DomainUser -Identity "Asuka.Soryu"
Get-DomainUser -Properties samaccountname,logonCount

# Search for a particular string in a user's attributes
Get-DomainUser -LDAPFilter "Description=*built*" | Select name,Description

Get-DomainComputer

Return all computers or specific computer objects in AD.

Expand Output

Get-DomainGroup

Return all groups or specific group objects in AD.

Get-DomainGroupMember

Return the members of a specific domain group.

Get-DomainOU

Search for all organization units (OUs) or specific OU objects in AD.

Enumerate GPOs

Get-DomainObjectAcl

Returns the ACLs associated with a specific active directory object.

Find-InterestingDomainAcl

Finds object ACLs in the current (or specified) domain with modification rights set to non-built in objects.

Get-ForestDomain

Return all domains for the current (or specified) forest.

Get-DomainTrust

Get-DomainSID

Returns the SID for the current domain or the specified domain.

Invoke-Kerberoast

Kerberoasting.

Kerberoasting

Find-PSRemotingLocalAdminAccess

Finding computers on which current user has Local Administrator privileges.

References

Last updated

Was this helpful?