Basics
Core Commands
# List folders and files
dir
dir C:\Users
dir /a
dir /a C:\Users
# Change directory
E: | C:
cd C:\Users
cd ..
cd Desktop
# Create directory
mkdir test
# Remove directory
rmdir test
rmdir /s non-empty-test
# Move files or folders
move file1.txt folder1
move a.txt b.txt
move folder1 folder2
# Print text
echo "Hello World"
echo "test" > file1.txt
# View content of a file
type file1.txt
# Delete file
del file1.txt
# Copy file
copy a.txt b.txt
copy a.txt folder1
# Rename file
ren a.txt newname.txt
# Change attributes of files or folders
attrib +h a.txt
attrib -h a.txt
attrib +h folder
dir /a:h
# List running processes
tasklist
# Kill running process
taskkill /f /pid 1547
# Display network information
ipconfig
ipconfig /all
# Display active connections
netstat
netstat /ano
# Test network connectivity
ping google.com
# Show path to destination
tracert google.com
# Create links
mklink softlink originalfile
mklink /H hardlink originalfile
mklink /D link dir # Soft link onlyFile System
File Permissions

Users & Groups
UAC

Runas
Credentials
Security Policy
Registry
Windows Sharing (SMB)
Services
Processes
Task Scheduling
Last updated