Previous

Domain User Enum

#Get a list of users in the current domain

Get-DomainUser
Get-DomainUser -Name student1

#Find User Accounts used as Service Accounts

Get-DomainUser -SPN

#Get list of all properties for users in the current domain

Get-DomainUser –Properties lastlogon
Get-DomainUser –Properties description,
Get-DomainUser -Properties samaccountname,memberof

……

#all enabled users, returning distinguishednames

Get-DomainUser -UACFilter NOT_ACCOUNTDISABLE -Properties distinguishedname

#all disabled users

Get-DomainUser -UACFilter ACCOUNTDISABLE

#QUICK WIN

Get-DomainUser –Properties description