Obj 1 Enumeration

Task - Enumerate Users, Computers, Domain Admins and Enterprise Admins.

Enumeration

List all domain users

Get-DomainUser

List all domain users by samaccount only

Get-DomainUser | select -ExpandProperty samaccountname

List all member computers in the domain

Get-DomainComputer | select -ExpandProperty dnshostname

List details of the Domain Admin Groups

Get-DomainGroup -Identity "Domain Admins"

List Members of the Domain Admin Group

Get-DomainGroupMember -Identity "Domain Admins"

List Members of the Enterprise Admins Group

Get-DomainGroupMember -Identity "EnterpriseAdmins" -Domain moneycorp.local

Last updated