Active Directory Administration
Domain Accounts
List all domain users
net user /domainGet information on a specific users
net user <USERNAME> /domainDomain Groups
net group /domainDomain Controller
Get the domain controller hostname
Get the DC with the FSMO roles
netdom /query fsmoGet a list of Systems
Workstations
netdom /query workstationServers
netdom /query serverTrusts
Query for a list of trusts
netdom /query trustGet 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?