WMI domain enumeration through root\directory\ldap
Domain enumeration using WMI
Get-WmiObject -Namespace root\directory\ldap -Class ds_* -ListFinding the domain name
Get-WmiObject -Namespace root\directory\ldap -Class ds_domain | select ds_dc,
ds_distinguishedname, pscomputernameGetting the domain policy
Get-WmiObject -Namespace root\directory\ldap -Class ds_domain | select ds_lockoutduration,
ds_lockoutobservationwindow, ds_lockoutthreshold, ds_maxpwdage,
ds_minpwdage, ds_minpwdlength, ds_pwdhistorylength, ds_pwdpropertiesFinding the domain controller
Searching user accounts
Adding filtering
Enumerating currently logged-on users
Fetching groups
Query group membership
Finding machines in the domain
Enumerating admin privileges across AD
References
Last updated