MITRE ATT&CK Technique: T1087
Domain Group Enumeration:
net groups "domain administrators" /domain
Domain User Enumeration:
net user <username> /domain
Local Group Enumeration:
net localgroup "administrators"
Local User Enumeration:
net user
Input:
wmic useraccount get /ALL
Input:
wmic process get caption,executablepath,commandline
Input:
wmic qfe get description,installedOn /format:csv
Input:
wmic /node:"192.168.0.1" service where (caption like "%sql server (%")
Input:
get-wmiobject –class "win32_share" –namespace "root\CIMV2" –computer "targetname"