RTFM_ security field notes

Windows local enumeration

Collect users, groups, system details, files, processes, tasks and installed software from a Windows host.

WinPEAS

WinPEAS collects configuration and privilege-escalation leads. Its highlights are not confirmed vulnerabilities; check effective permissions and prerequisites.

Useful Windows commands

User information

Generic information about the user and the domain:

whoami /all
net user <username>
net user
net user /domain
net user <username> /domain
net group /domain

List the directory tree from the current location, subject to access rights:

tree /a /f

System information

systeminfo
systeminfo | findstr /B /C:"OS Name" /C:"System Type" /C:"OS Version"

Interesting files

# Collect interesting extensions
Get-ChildItem -Path C:\Users\ -Include *.txt,*.pdf,*.xls,*.xlsx,*.doc,*.docx,*.kdbx,*.ps1 -File -Recurse -ErrorAction SilentlyContinue

# Collect Git directories
Get-ChildItem -Path C:\ -Force -Recurse -Directory -Filter .git -ErrorAction SilentlyContinue | ForEach-Object FullName
# For more detailed results:
# https://gist.github.com/jdhitsolutions/ba3295167ccc997b7714e1f2a2777405

# Retrieve the PowerShell history
cat (Get-PSReadlineOption).HistorySavePath
# The path is normally always under
# C:\Users\<user>\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\
# in CMD it is possible to run
type C:\Users\<USER>\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\*

List processes

tasklist
tasklist /SVC

List scheduled tasks

schtasks /query /fo LIST /v

List services

Get-Service | Where-Object {$_.Status -eq "Running"}

A running service alone is not an escalation path. Check its account and the permissions on its configuration and executable.

Network configuration

ipconfig /all
route print
netstat -ano
netsh advfirewall show currentprofile

Installed software

wmic qfe get Caption, Description, HotFixID, InstalledOn

WMIC is deprecated and may be absent. Avoid wmic product for routine inventory: querying Win32_Product can trigger MSI consistency checks and repairs.

Other

accesschk.exe -uws "Everyone" "C:\Program Files"
Get-ChildItem "C:\Program Files" -Recurse | Get-ACL | ?{$_.AccessToString -match "Everyone\sAllow\s\sModify"}

mountvol

driverquery /v /fo csv | ConvertFrom-CSV | Select-Object 'Display Name', 'Start Mode', Path
Get-WmiObject Win32_PnPSignedDriver | Select-Object DeviceName, DriverVersion, Manufacturer | Where-Object {$_.DeviceName -like "*VMware*"}

# AlwaysInstallElevated must be enabled in both HKCU and HKLM for this policy path
reg query HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer
reg query HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
Provenance and confidence
Version
2
Sources reviewed
2026-11-23
Confidence
medium — Legacy RTFM; v2 editorial review on 2026-11-23 clarifies enumeration results, policy prerequisites and MSI inventory side effects. No Windows host test.

Also searched as: énumération locale, prise d'information locale, winpeas, énumération windows