Forest and Domains

Forest, SSID, Domains

Domain Enumeration Manual

#The enumeration can be done by using Native executables and .NET classes

Whoami /priv

$ADClass=[System.DirectoryServices.ActiveDirectory.Domain]

$ADClass::GetCurrentDomain()

Domain Enumeration Tools

PowerView

https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1


#Import
..\PowerView.ps1


#Get Domain Info
Get-NetDomain


#Specify Domain Name
Get-NetDomain -Domain moneycorp.local


#Get Domain SID
Get-DomainSID


#Get domain policy for the current domain
Get-DomainPolicy
(Get-DomainPolicy)."system access"
(Get-DomainPolicy)."Kerberos Policy"
(Get-DomainPolicy)."Version"
(Get-DomainPolicy)."Registry Values"


#Get domain policy for another domain
(Get-DomainPolicy–domainmoneycorp.local)."system access" 
(Get-DomainPolicy–domainmoneycorp.local)."Kerberos Policy" 


#Get domain controllers for the current domain
Get-NetDomainController


#Get domain controllers for another domain
Get-NetDomainController –Domain moneycorp.local

The ActiveDirectoryPowerShell module

samratashok

Last updated