githubEdit

Using PowerView

Get Current Domain

Get-Domain

Enumerate Other Domains

Get-Domain -Domain <DomainName>

Get Domain SID

Get-DomainSID

Get Domain Policy

Get-DomainPolicy
# like max ticket age , miminum, maximum pass

#Will show us the policy configurations of the Domain about system access or kerberos
Get-DomainPolicy | Select-Object -ExpandProperty SystemAccess
Get-DomainPolicy | Select-Object -ExpandProperty KerberosPolicy

Get Domain Controllers

# information like ip, os Version
Get-DomainController
Get-DomainController -Domain <DomainName>

Enumerate Domain Users:

#Save all Domain Users to a file
Get-DomainUser | Out-File -FilePath .\\DomainUsers.txt

#Will return specific properties of a specific user
Get-DomainUser -Identity [username] -Properties DisplayName, MemberOf | Format-List

#Enumerate user logged on a machine
Get-NetLoggedon -ComputerName <ComputerName>

#Enumerate Session Information for a machine
Get-NetSession -ComputerName <ComputerName>

#Enumerate domain machines of the current/specified domain where specific users are logged into
Find-DomainUserLocation -Domain <DomainName> | Select-Object UserName, SessionFromName

Enum Domain Computers:

Enum Groups and Group Members:

Enumerate Shares:

Enum Group Policies:

Enum OUs:

Enum ACLs:

Enum Domain Trust:

Enum Forest Trust:

User Hunting:

Last updated