Domain Recon

The following are tools and scripts that can be used to collect information about the domain.

Basic Domain Info

#Using Powerview
Get-NetDomain

List of Computers

#Using Powerview
Get-NetComputer

List of Domain Users

net user /domain

Domain User Attributes and Details

net user <username> /domain

#Using Powerview and the output can be filtered using pipe & name (e.g. cn)
Get-NetUser

Check User Admin Access

List of Domain Groups

Domain Group Privileges

Domain Users to Domain Group Mapping

List of Logged in Domain Users

The above commands can be used to find the logged in users in a remote machine. But for various reasons both commands could fail.

PsLoggedon is executable made available by Microsoft to list the logged on users on a remote system.

List of SPNs in Domain

Setspn is an executable made available by Microsoft to list the SPNs present in a domain.

Get Object ACL

List Domain Shares

Cached AD Credentials

Credentials of users are usually cached and can be retrieved using the mimikatz executble.

Last updated

Was this helpful?