Windows Commands Cheatsheet
This cheatsheet contains essential Windows commands useful for penetration testing, system enumeration, and privilege escalation.
Basic System Commands
# Display Windows version information
ver
# System information
systeminfo
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
# Host name
hostname
# Current user
whoami
echo %username%
# Get user privileges
whoami /priv
# Get all user information
whoami /all
# Display environment variables
set
# Display network configuration
ipconfig /all
# Show running processes
tasklist
tasklist /v # verbose
# Show service details
sc query
# Display date and time
date /t
time /tFile Navigation and Management
User and Permission Management
Network Commands
Scheduled Tasks
Services
Registry
PowerShell Commands
Finding and Searching
System and Security
Other Useful Commands
Remote Execution
File Transfer Methods
Command History and Help
Remember that some commands may require administrative privileges to run successfully. Use runas or launch CMD/PowerShell as administrator when necessary.
Last updated