100 CMD Hacks, Tricks, and Pranks for Windows 10
CMD Tricks (Fun & Visuals)
6. View Network Connections
netstat -an
7. Generate Tree Output
tree
16. Change CMD Title
title I Am Watching You
17. Change Text Color
color a
25. Ping a Website
ping google.com
27. Open CMD from Folder
Shift + Right Click > Open Command Window Here
28. Copy Output to File
command > output.txt
File & Folder Hacks
13. Fake Blue Screen of Death
@echo off
color 17
mode 1000
echo A problem has been detected and Windows has been shut down...
pause >nul
14. Create Undeletable Folder
md aux\con
15. Hide Files in Image
copy /b image.jpg + secret.txt output.jpg
59. Disable Internet
ipconfig /release
60. Enable Internet
ipconfig /renew
61. Set Static IP
netsh interface ip set address "Local Area Connection" static 192.168.1.100 255.255.255.0 192.168.1.1
62. Set DNS Server
netsh interface ip set dns name="Local Area Connection" static 8.8.8.8
63. Enable Firewall
netsh advfirewall set allprofiles state on
64. Disable Firewall
netsh advfirewall set allprofiles state off
65. View Firewall Status
netsh advfirewall show allprofiles
66. Create Folder
mkdir foldername
91. Open Task Scheduler
taskschd.msc
92. Open Windows Defender
start windowsdefender:
Networking
1. View Saved Wi-Fi Passwords
netsh wlan show profiles
netsh wlan show profile name="WiFi-Name" key=clear
5. Cancel Shutdown
shutdown -a
23. Flush DNS Cache
ipconfig /flushdns
24. Display IP Config
ipconfig /all
26. Trace Route to a Website
tracert google.com
51. List All Users
net user
52. List All Groups
net localgroup
53. Get BIOS Info
wmic bios get serialnumber
54. Get CPU Info
wmic cpu get name
55. Get Battery Status
wmic path Win32_Battery get EstimatedChargeRemaining
56. Shutdown Another PC
shutdown -s -m \\ComputerName
57. Restart PC
shutdown -r -t 0
72. List Files
dir
73. List Hidden Files
dir /ah
89. List Startup Apps
wmic startup get caption,command
Pranks & Gags
4. Shutdown Timer
shutdown -s -t 60
8. Matrix Effect
@echo off
color 0a
:top
echo %random% %random% %random% %random%
goto top
9. Open Infinite CMD Windows
:loop
start
goto loop
10. Fake Virus Prank
@echo off
echo You have been hacked!
pause
shutdown -s -t 30 -c "You've been hacked. Bye!"
11. Open Websites Automatically
start https://example.com
12. Eject CD Drive Continuously
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
loop
18. Check Hard Disk Errors
chkdsk C:
32. Show System Uptime
net statistics workstation
93. Open Programs and Features
appwiz.cpl
System Info & Management
2. Check System Info
systeminfo
3. List Installed Drivers
driverquery
19. List Running Tasks
tasklist
20. Kill a Program
taskkill /f /im notepad.exe
21. View Installed Updates
wmic qfe list
22. Show ARP Cache
arp -a
29. Append Output to File
command >> output.txt
30. Redirect Error to File
command 2> error.txt
49. Disable Administrator Account
net user administrator /active:no
50. Show Net User Details
net user username
58. Lock Workstation
rundll32.exe user32.dll,LockWorkStation
67. Delete Folder
rmdir foldername /s /q
68. Delete File
del filename.txt
69. Rename File
rename oldname.txt newname.txt
70. Move File
move filename.txt D:\newfolder\
71. Copy File
copy file.txt D:\backup\
74. List System Files
dir /as
75. Enable File Extensions
assoc .txt=txtfile
76. Hide Folder
attrib +h foldername
77. Unhide Folder
attrib -h foldername
78. Check Port Status
netstat -an | find "80"
79. Check Windows Activation
slmgr /xpr
80. Get Windows Product Key
wmic path softwarelicensingservice get OA3xOriginalProductKey
81. Enable Telnet
pkgmgr /iu:"TelnetClient"
82. Enable Hyper-V
dism /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
83. Clean Temp Files
del /q/f/s %TEMP%\*
84. Start Disk Cleanup
cleanmgr
85. Open Services
services.msc
86. Open Event Viewer
eventvwr
87. Open Performance Monitor
perfmon
88. Open Windows Features
optionalfeatures
90. Disable Startup Item
msconfig
94. Enable Remote Desktop
SystemPropertiesRemote
95. List Open Files (Shared)
openfiles
96. Check Disk Usage
wmic logicaldisk get size,freespace,caption
97. Find Large Files
forfiles /S /M *.* /C "cmd /c if @fsize GTR 104857600 echo @path"
98. Schedule Shutdown
at 10:00 shutdown -s
99. Make Folder Inaccessible
cacls foldername /e /d everyone
100. Create Infinite Folder Loop
md folder\..\folder\..\folder
User Accounts & Access
40. Open Control Panel
control
41. Open Group Policy Editor
gpedit.msc
42. Open Local Users and Groups
lusrmgr.msc
43. Create New User
net user username password /add
44. Add User to Admin Group
net localgroup administrators username /add
45. Delete User
net user username /delete
46. Map Network Drive
net use Z: \\Computer\Share
47. Disconnect Network Drive
net use Z: /delete
48. Enable Administrator Account
net user administrator /active:yes
Utilities & Tools
31. List All Environment Variables
set
33. Open Calculator from CMD
start calc
34. Open Notepad from CMD
start notepad
35. Open MS Paint
start mspaint
36. Open Windows Explorer
start explorer
37. Open Registry Editor
regedit
38. Open Task Manager
taskmgr
39. Open Device Manager
devmgmt.msc