06/18/2025
π΅οΈ Windows Forensic Commands: Investigate, Analyze & Respond ππ»
When a security incident occurs on a Windows system, knowing which commands to run can make the difference between guessing and solid digital forensics π§ βοΈ.
This guide covers essential Windows forensic commands for triage, evidence collection, and investigation β all from the command line and PowerShell.
π§° Top Forensic Commands:
π File System & Timeline
dir /s /b /a:-d C:\Users\USERNAME\Desktop
dir /T:C /T:A /T:W
π§ Process & Memory Inspection
tasklist
tasklist /v
wmic process list brief
π Network Connections
netstat -ano
ipconfig /displaydns
π User & Logon Information
query user
whoami /all
net user USERNAME
π§Ύ Event Logs (PowerShell)
Get-WinEvent -LogName Security -MaxEvents 10
Get-WinEvent -FilterHashtable @{LogName="Security"; ID=4624}
π Prefetch & Shimcache (for ex*****on evidence)
β Use tools like WinPrefetchView, AppCompatCacheParser
π‘οΈ Pro Tip:
Always collect volatile data first, ensure chain of custody, and preserve original evidence with imaging tools where possible π¦π.
Disclaimer: This content is for educational and awareness purposes only. Always conduct forensic analysis in authorized and ethical contexts.