100+ Best CMD Tricks that Will Make You a CMD Ninja 2023

Today, I will share the 100+ best CMD tricks you should know. Command Prompt may seem like an old feature of Windows computers. But it is an extremely powerful tool that your PC has. There are so many programs out there that need you to type down some CMD commands to run it. Then why not be a master at it?

CMD Tricks

Well, just to help you in mastering the CMD, I have shared these command prompt tricks. These tricks will definitely help you to become a CMD ninja at no time. So let’s head into the topic without wasting time.

Must Read: Best IPTV Players for Windows

Best CMD Tricks For Windows 11/10/8/7 PC

1. Getting help

We often feel a need for help with the CMD commands. And performing a Google search for each of those CMD commands can be a pretty hectic task. However, thankfully there is a little CMD trick that will help you to get help for a specific CMD command.

Best CMD tricks


Just add the “ /? ” after the command that you know about and hit enter. Then this command will help you to understand what a specific command does.

2. Check The IP Address Of A Website

This one is one of the best CMD tricks that you can try. There are often when website developers do feel a need to know the IP address of their website.

cmd tricks for Windows

In such cases, a little CMD command helps a lot. Since checking the IP Address by going to different websites can be challenging. Instead, you can type this command: nslookup website.com

3. Execute Multiple Domains One By One

Want to execute multiple domains one by one? Well, then this command would be pretty handy for you. There are lots of programs that need CMD to get installed on a computer.

cmd commands

So, if you want to run multiple commands at once, relax a bit. Then you can put && between two CMD commands and hit the enter button.

After that, CMD will automatically execute the courses one by one. Plus, you do not have to enter commands again and again. Here is an example of the command: doskey /history&&driverquery

4. Repair the System Files

We all know fact that Windows’s system files often get corrupted. And installing windows, again and again, is a pretty boring task. But thankfully, you can repair system files by running a simple command. This is also one of the best CMD tricks one should know.

command prompt tricks

Simply type “sfc/scannow” and hit enter, and it will immediately start the scanning and repair process. However, you should open CMD with Administrator rights to execute the code.

5. Function Keys

The function keys are a set of keys on your keyboard that can be used to perform specific tasks in CMD. Here are some of the most useful ones:

  • F1: F1 Key prints the characters one by one of your last-used commands.
  • F2: This command help in pasting the last used command. However, it only works for some specific commands.
  • F3: F3 pastes the last used command and works with every command.
  • F4: F4 helps delete commands, but it works only for some specific commands.
  • F5: F5 Key pastes the last used code without cycling.
  • F6: F6 helps in pasting the ^Z code.
  • F7: F7 key displays all the previously used commands.
  • F8: F8 key pastes all the cycle-able used commands.
  • F9: F9 key lets you paste commands from the list of recently used commands.

6. See PC driver list

Want to know which drivers are installed on your computer? Well, you can use a simple command to learn about it. Simply type down “driverquery” command, and you will get the list of all the installed drivers on your computer.

7. Change the Color of the Command Prompt

Do you know that you can even change the color of your command prompt? Well, for this you have to right-click on the command prompt window. Then go to properties and select a color.

8. Change Font Color

You can also change the font color of your command prompt. For this, you have to use commands like:

  • color 1
  • color 2
  • color 3
  • color 4
  • color 5
    and so on.

9. Command History

Looking for a command that you have previously used but can’t remember now? Well, then try the doskey /history command. This will offer you a list of all the previously used commands.

10. Shut Down the Computer With CMD

You can also shut down, restart, and log off your computer using CMD commands. To do so, here are the commands that you have to use

  • For Shutdown: shutdown -s
  • For Restarting: shutdown -r
  • For Logoff: shutdown -l

11. Create a WiFi Hotspot

You can also take help from CMD to create a wifi hotspot and share the internet with other devices. However, it is a little lengthy process.

  • First of all, you have to enter this command “netsh wlan set hostednetwork mode=allow ssid=HotspotName key=Password” in the CMD.
  • Now enter any name in the ‘HotspotName’ section and enter a password in the ‘Password’ section.
  • Now to start the WiFi hotspot, you have to type the “netsh wlan start hostednetwork” command. Also, to switch off the WiFi hotspot, you must use the “netsh wlan stop hostednetwork” command.

The Ultimate List of Best Command Prompt Tricks

Apart from these commands, many of the best CMD tricks are available. You can learn more about them by going through this list.

1. Character Map – charmap

2. Bluetooth Transfer Wizard – fsquirt

3. Calculator – calc

4. Accessibility Wizard – accwiz

5. Administrative Tools – control admintools

6. Automatic Updates – wuaucpl.cpl

7. Add/Remove Programs – appwiz.cpl

8. Add Hardware Wizard – hdwwiz.cpl

9. Certificate Manager – certmgr.msc

10. Check Disk Utility – chkdsk

11. Clipboard Viewer – clipbrd

12. Control Panel – control

13. Component Services – dcomcnfg

14. Computer Management – compmgmt.msc

15. DDE Shares – ddeshare

16. Command Prompt – cmd

17. Date and Time Properties – timedate.cpl

18. Device Manager – devmgmt.msc

19. Direct X Troubleshooter – dxdiag

20. Disk Cleanup Utility – cleanmgr

21. Disk Defragment – dfrg.msc

22. Disk Management – diskmgmt.msc

23. Disk Partition Manager – diskpart

24. Display Properties – control desktop

25. Display Properties – desk.cpl

26. Dr. Watson System Troubleshooting Utility – drwtsn32

27. Driver Verifier Utility – verifier

28. Event Viewer – eventvwr.msc

29. Files and Settings Transfer Tool – migwiz

30. File Signature Verification Tool – sigverif

31. Findfast – findfast.cpl

32. Firefox – firefox

33. Folders Properties – control folders

34. Fonts – control fonts

35. Fonts Folder – fonts

36. Free Cell Card Game – freecell

37. Game Controllers – joy.cpl | Best CMD Commands 2017

38. Group Policy Editor (for xp professional) – gpedit.msc

39. Hearts Card Game – mshearts

40. Help and Support – helpctr

41. HyperTerminal – hypertrm

42. Iexpress Wizard – iexpress

43. Indexing Service – ciadv.msc

44. Internet Connection Wizard – icwconn1

45. Internet Explorer – iexplore

46. Internet Properties – inetcpl.cpl

47. Keyboard Properties – control keyboard

48. Local Security Settings – secpol.msc

49. Local Users and Groups – lusrmgr.msc

50. Logs You Out Of Windows – logoff

51. Malicious Software Removal Tool – mrt

52. Microsoft Chat – winchat

53. Microsoft Movie Maker – moviemk

54. Microsoft Paint – mspaint

55 Microsoft Syncronization Tool – mobsync

56. Minesweeper Game – winmine

57. Mouse Properties – control mouse

58. Mouse Properties – main.cpl

59. Netmeeting – conf

60. Network Connections – control netconnections

61. Network Connections – ncpa.cpl

62. Network Setup Wizard – netsetup.cpl

63. Notepad – notepad

64. Object Packager – packager

65. ODBC Data Source Administrator – odbccp32.cpl

66. On Screen Keyboard – osk

67. Outlook Express – msimn

68. Paint – pbrush

69. Password Properties – password.cpl

70. Performance Monitor – perfmon.msc

71. Performance Monitor – perfmon

72. Phone and Modem Options – telephon.cpl

73. Phone Dialer – dialer

74. Pinball Game – pinball

75. Power Configuration – powercfg.cpl

76. Printers and Faxes – control printers

77. Printers Folder – printers

78. Regional Settings – intl.cpl

79 Registry Editor – regedit

80. Registry Editor – regedit32

81. Remote Access Phonebook – rasphone

82. Remote Desktop – mstsc

83. Removable Storage – ntmsmgr.msc

84. Removable Storage Operator Requests – ntmsoprq.msc

85. Resultant Set of Policy (for xp professional) – rsop.msc

86. Scanners and Cameras – sticpl.cpl

87. Scheduled Tasks – control schedtasks

88. Security Center – wscui.cpl

89. Services – services.msc

90. Shared Folders – fsmgmt.msc

91. Shuts Down Windows – shutdown

92. Sounds and Audio – mmsys.cpl

93. Spider Solitare Card Game – spider

94. SQL Client Configuration – cliconfg

95. System Configuration Editor – sysedit

96. System Configuration Utility – msconfig

97. System Information – msinfo32

98. System Properties – sysdm.cpl

99. Task Manager – taskmgr

100. TCP Tester – tcptest

101. Telnet Client – telnet

102. User Account Management – nusrmgr.cpl

103. Utility Manager – utilman

104. Windows Address Book – wab

105. Windows Address Book Import Utility – wabmig

106. Windows Explorer – explorer.

107. Managing the Boot Configuration Data – bcdedit

108. Editing Boot Settings – bootcfg

109. Encrypting or Decrypting Files/folders – cipher

110. Clearing the screen – cls

111. Managing stored usernames/passwords – cmdkey

112. Changing CMD Color – color

113. Compressing one or more files – compress

114. Converting FAT drives to NTFS – convert

115. Delete files – del

116. Deleting User Profiles – delprof

117. Displaying the list of files and folders – dir

118. Displaying Message On Screen – echo

119. Deleting one or more files – erase

120. Opening the windows Explorer – explorer

121. Formatting a disk – format

122. Knowing file extension – ftype

123. Displaying the Mac Address – getmac

124. Online help – help

125. Displaying the host name – hostname

126. Editing disc label – label

127. Log a user off – logoff

128. Get a log time in a file – logtime

129. Creating .cab files – makecab

130. Creating new folders- md

131. Opening Windows Installer – msiexec

132. Managing the network resources – net

133. Knowing the permissions for a user – perms

134. Testing a network connecting – ping

135. Printing a text file – print

136. Shutdown computer – psshutdown

137. Checking free disk space – freedisk

138. Know the file and volume utilities – fsutil

139. File transfer protocl – ftp

140. Showing the space used in folders – diskuse

141. Deleting a folder and all subfolders – deltree

142. Importing or Exporting Active directory data – csvde

143. Displaying the resultant set of Policy information – gpresult

144. Updating the Group policy settings – gpupdate

145. Replacing the files that are currently in use by the os – inuse

146. Comparing two files – fc

147. Finding a text string in a file – find

148. Finding for a strings in file – findstr

149. Displaying the memory usage – mem

Must Read: Best Firewall for Windows PC

Final Words

So these are some of the best CMD tricks you can try. Undoubtedly, if you use these cmd commands effectively, you will be able to level up your productivity. As well as you will be able to handle your PC easily. Anyway, if you have any questions, please comment below.

Leave a Reply