Active Directory Administration
Domain Accounts
List all domain users
net user /domain
Get information on a specific users
net user <USERNAME> /domain
Domain Groups
net group /domain
Domain Controller
Get the domain controller hostname
Get the DC with the FSMO roles
netdom /query fsmo
Get a list of Systems
Workstations
netdom /query workstation
Servers
netdom /query server
Trusts
Query for a list of trusts
netdom /query trust
Get Logged In Users
You can use PowerViews Get-NetLoggedOn
Import-Module .\PowerView.ps1
Get-NetLoggedon -ComputerName <COMPUTERNAME>
Get sessions on a machine Using PowerView
Import-Module .\PowerView.ps1
Get-NetSession -ComputerName <COMPUTERNAME>
Last updated
Was this helpful?