Windows Enumeration
Enumeration
System Information
Basic System Info
hostnameDisplays the hostname of the current machine.qwinstaLists users connected to the machine along with session details. Similar to Linux'sworwho.query userShows details about active sessions.
Detailed System Information
systeminfoRetrieves comprehensive system details.Filter specific details:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"Using PowerShell:
[System.Environment]::OSVersion.Version
Patch and Update Information
CMD:
wmic qfe get Caption, Description, HotFixID, InstalledOn(List installed patches)wmic qfe list brief(Quick overview of updates)wmic product get name(List installed programs)
PowerShell:
Get-HotFix | ft -AutoSize(List installed patches)Get-WmiObject -Class Win32_Product | select Name, Version(Installed programs)
Running Processes
CMD:
tasklist /svcLists all running processes and associated services.
Domain Status
PowerShell:
Returns
Trueif the machine is part of a domain.
PowerShell and AppLocker Policies
PowerShell Execution Policy
AppLocker Policy Rules
Testing AppLocker Policies
PowerShell History Retrieve the PowerShell command history for a specific user:
Environment Variables
CMD:
PowerShell:
Windows Defender
Firewall and Antivirus Status (CMD):
View firewall profiles:
Check Windows Defender status:
Windows Defender Status (PowerShell):
Users
Current User Details:
whoami /allwhoami /privwhoami /groups
Local Users (CMD):
List all users:
net usersGet user details:
net user <USER>Current user's details:
net user %username%Password policy:
Create a New User:
User Domain and SID Information:
Show domain:
Check login server:
Display domain, name, and SID:
Groups
Local Groups:
List all groups:
net localgroupGroup details:
net localgroup AdministratorsAdd a user to administrators:
Domain Groups:
Info about domain groups:
net group /domainList users in a group:
net group /domain <DOMAIN_GROUP_NAME>List connected computers:
Domain controllers:
Network Enumeration
Basic Networking Information:
ifconfigipconfig /all
Routing and Firewall Status:
Routing table:
route printARP table:
arp -aOpen ports and connections:
netstat -anoFirewall state:
Shared Resources
Common Shares:
C$: Administrative share forC:/.ADMIN$: Assigned toC:/Windows.IPC$: Used for interprocess communication (RPC).SYSVOL: Only on Domain Controllers (DCs).NETLOGON: Available on DCs for logon scripts and policies.
Commands:
List SMB shares:
Mount a share:
Unmount a share:
View shared resources on a host:
References
Last updated