๐Ÿ”ญCredentialed Enumeration (PowerView)

Domain User Information

Code

Get-DomainUser -Identity <username> -Domain example.local | Select-Object -Property name,samaccountname,description,memberof,whencreated,pwdlastset,lastlogontimestamp,accountexpires,admincount,userprincipalname,serviceprincipalname,mail,useraccountcontrol

Example

name                 : Username
samaccountname       : username
description          :
memberof             : {CN=VPN Users,OU=Security Groups,OU=Corp,DC=EXAMPLE,DC=LOCAL, CN=Shared Calendar
                       Read,OU=Security Groups,OU=Corp,DC=EXAMPLE,DC=LOCAL, CN=Printer Access,OU=Security
                       Groups,OU=Corp,DC=EXAMPLE,DC=LOCAL, CN=File Share H Drive,OU=Security
                       Groups,OU=Corp,DC=EXAMPLE,DC=LOCAL...}
whencreated          : 10/27/2021 5:37:06 PM
pwdlastset           : 11/18/2021 10:02:57 AM
lastlogontimestamp   : 2/27/2022 6:34:25 PM
accountexpires       : NEVER
admincount           : 1
userprincipalname    : username@example.local
serviceprincipalname :
mail                 :
useraccountcontrol   : NORMAL_ACCOUNT, DONT_EXPIRE_PASSWORD, DONT_REQ_PREAUTH

Code

Enumerate All Domain Users / Export CSV

Code

KerberosPreauthNotRequired

Code

Kerberos Constrained Delegation

Code

Unconstrained Delegation

Code

Description Field

Code

Example

Service Principal Names (SPNs)

Code

Find-ForeignGroup

Code

Service Principal Names (Other Domains)

Code

Password Set Time

Code

Password Set Time (Before Certain Date)

Code

UAC Values

ConvertFrom-UACValue

Code

  • -showall: show all common UAC values

  • +: The ones that are set for the user are marked with a +

Example

Recursive Group Membership

Code

  • -Recurse: List out the members of any groups that are part of the target group (nested group memberships)

Example

  • For example, the output above shows that the Secadmins group is part of the Domain Admins group through nested group membership

Last updated