CMD vs PowerShell
List files Files
CMD
dirPowerShell
Get-ChildItem (ls)List files with details Files
CMD
dir /aPowerShell
Get-ChildItem -ForceChange directory Files
CMD
cd <dir>PowerShell
Set-Location <dir> (cd)Print current directory Files
CMD
cdPowerShell
Get-Location (pwd)Create directory Files
CMD
mkdir <dir>PowerShell
New-Item -ItemType Directory <dir>Remove file Files
CMD
del <file>PowerShell
Remove-Item <file> (rm)Remove directory Files
CMD
rmdir /s /q <dir>PowerShell
Remove-Item -Recurse -Force <dir>Copy file Files
CMD
copy <src> <dst>PowerShell
Copy-Item <src> <dst> (cp)Copy directory Files
CMD
xcopy <src> <dst> /s /ePowerShell
Copy-Item -Recurse <src> <dst>Move/rename file Files
CMD
move <src> <dst>PowerShell
Move-Item <src> <dst> (mv)Show file contents Files
CMD
type <file>PowerShell
Get-Content <file> (cat)Create empty file Files
CMD
type nul > <file>PowerShell
New-Item <file>Find text in file Files
CMD
findstr "text" <file>PowerShell
Select-String "text" <file>Find files by name Files
CMD
dir /s /b *name*PowerShell
Get-ChildItem -Recurse -Filter *name*Clear screen System
CMD
clsPowerShell
Clear-Host (cls)Show date/time System
CMD
date /t && time /tPowerShell
Get-DateSystem info System
CMD
systeminfoPowerShell
Get-ComputerInfoHostname System
CMD
hostnamePowerShell
$env:COMPUTERNAMECurrent user System
CMD
whoamiPowerShell
$env:USERNAMEEnvironment variables System
CMD
setPowerShell
Get-ChildItem Env:Set env variable System
CMD
set VAR=valuePowerShell
$env:VAR = "value"Command history System
CMD
doskey /historyPowerShell
Get-HistoryShutdown PC System
CMD
shutdown /s /t 0PowerShell
Stop-ComputerRestart PC System
CMD
shutdown /r /t 0PowerShell
Restart-ComputerPing host Network
CMD
ping <host>PowerShell
Test-Connection <host>Show IP config Network
CMD
ipconfigPowerShell
Get-NetIPAddressShow IP (detailed) Network
CMD
ipconfig /allPowerShell
Get-NetIPConfigurationFlush DNS Network
CMD
ipconfig /flushdnsPowerShell
Clear-DnsClientCacheDNS lookup Network
CMD
nslookup <host>PowerShell
Resolve-DnsName <host>Show open ports Network
CMD
netstat -anPowerShell
Get-NetTCPConnectionTrace route Network
CMD
tracert <host>PowerShell
Test-Connection -Traceroute <host>Download file Network
CMD
curl -O <url>PowerShell
Invoke-WebRequest <url> -OutFile <file>List processes Processes
CMD
tasklistPowerShell
Get-ProcessKill process by name Processes
CMD
taskkill /im <name> /fPowerShell
Stop-Process -Name <name> -ForceKill process by PID Processes
CMD
taskkill /pid <pid> /fPowerShell
Stop-Process -Id <pid> -ForceStart a program Processes
CMD
start <program>PowerShell
Start-Process <program>List services Processes
CMD
sc queryPowerShell
Get-ServiceStart service Processes
CMD
net start <svc>PowerShell
Start-Service <svc>Stop service Processes
CMD
net stop <svc>PowerShell
Stop-Service <svc>Show disk space Disk
CMD
wmic logicaldisk get size,freespace,captionPowerShell
Get-PSDrive -PSProvider FileSystemShow directory size Disk
CMD
dir /s <dir>PowerShell
(Get-ChildItem -Recurse | Measure-Object Length -Sum).SumFormat drive Disk
CMD
format <drive>: /fs:ntfsPowerShell
Format-Volume -DriveLetter <drive>Showing 42 of 42 commands
CMD vs PowerShell Cheatsheet
A side-by-side comparison of Windows CMD and PowerShell commands. Search by task name or command to find the equivalent instantly. Perfect for switching between CMD and PowerShell.
About this cheatsheet
This cheatsheet shows CMD and PowerShell equivalents for common Windows tasks, organized by category.
- 40+ task equivalents between CMD and PowerShell
- Side-by-side comparison layout
- Filter by category (Files, System, Network, Processes, Disk)
- Full-text search across tasks and commands
- Copy CMD or PowerShell command independently
100% free. No signup required. No data collected or sent anywhere.
Explore All Tools
Calculators (11)
Text Tools (13)
Date & Time (7)
Utilities (10)