, , , ,

11 Useful Windows CMD Commands Everyone Should Know

Want create site? Find Free WordPress Themes and plugins.

There are some things you can only do from the command prompt, even on Windows. Some of these tools don’t have graphical equivalents, while others are plain & faster to use than their graphical interfaces.

I am only focusing on commands that should be useful for you even if you are not a technical person.

First of all, You need to open command prompt in Windows. To do this, Just press Windows + R keys to open “run” dialog box and type “cmd”.

Here are the 11 commands you should know…


Find your ip address easily and quickly

Yes I know we can find IP address from the Control Panel, but this takes quite a few clicks. The ipconfig command is a fast way of determining your computer’s IP address and other information, such as the address of its default gateway, if you’re behind a router (like today’s most computers are), you’ll instead receive the local network address of the router.

ipconfig command in windows command prompt

ipconfig command in windows command prompt

To use the command, just type ipconfig into a Command Prompt window. You’ll see a list of all the network connections your computer is using. Look under Wireless LAN adapter if you’re connected to Wi-Fi or Ethernet adapter Local Area Connection if you’re connected to a wired network.

ipconfig /flushdns

Flush The DNS Resolver Cache

If you change your DNS server address, the changes won’t necessarily take effect immediately and you may have Internet connectivity problems because Windows uses a cache that remembers DNS responses it’s received, saving time when you access the same addresses again in the future.

ipconfig /flushdns command in windows command prompt

ipconfig /flushdns command in windows command prompt

To ensure Windows is getting addresses from the new DNS servers instead of using old, cached entries, run the ipconfig /flushdns command after changing your DNS server.

sfc /scannow

Scan System Files for Problems

If system files are missing or corrupted in your computer and your computer shows some errors about missing files, Don’t worry, the system file checker will repair them. Windows OS includes a system file checker tool that scans its system files and looks for problems. This may fix problems with some Windows systems.

sfc /scannow command in windows command prompt

sfc /scannow command in windows command prompt

To use this tool, open a Command Prompt window as Administrator and run the sfc /scannow command.


To display a list of current file associations

Most files in Windows are associated with a specific program that is assigned to open the file by default. At times, remembering these associations can become confusing. You can remind yourself by entering the command “assoc” to display a full list of file extensions and the programs they’re connected with.

assoc command in windows command prompt

assoc command in windows command prompt

You can also extend the command to change file associations. For example, “assoc .txt=” will change the file association for text files to whatever program you enter after the equal sign. The ASSOC command itself will reveal both the extension names and program names, which will help you properly use this command. You can probably do this more easily in the GUI, but the command line interface is a perfectly functional alternative.

If you’re experiencing issues connecting to a website or other network connection issues, Windows and other operating systems have some standard tools you can use to identify problems.


Troubleshoot Network Connection Issues

Ping is a basic Internet command that allows you to verify that a particular IP address exists and can accept requests.

ping command in windows command prompt

ping command in windows command prompt

For example, type ping google.com and Windows will send packets to google.com. Google will respond and let you know it’s received them. You’ll be able to see if any packets didn’t make it to Google.com. perhaps you’re experiencing packet loss and how long it took you to hear back perhaps the network is saturated and packets are taking a while to reach their destinations.


This is a more advanced version of ping that’s useful if there are multiple routers between your PC and the device you’re testing. Like ping, you use this command by typing “pathping” followed by the IP address, but unlike ping, pathping also relays some information about the route the test packets take


traces the route of host

tracert command in windows command prompt

tracert command in windows command prompt

the tracert command, which traces the route it takes for a packet to reach a destination. For example, run tracert google.com and you’ll see the path your packet takes to reach Google. If you’re having issues connecting to a website, tracert can show you where the problem is occurring.

netstat -an

List Network Connections and Ports Information

netstat -an command in windows command prompt

netstat -an command in windows command prompt

The netstat command is particularly useful, displaying all sorts of network statistics when used with its various options. One of the most interesting variants of netstat is netstat -an, which will display a list of all open network connections on their computer, along with the port they’re using and the foreign IP address they’re connected to.


Permanently Delete and Overwrite a Directory

The cipher command is mostly used for managing encryption, but it also has an option that will write garbage data to a drive, clearing its free space and ensuring no deleted file can be recovered. Deleted files stick around on disk unless you’re using a solid state drive. The cipher command effectively allows you to “wipe” a drive without installing any third-party tools.

To use the command, specify the drive you want to wipe like so:

cipher /w:D:\

cipher /w:c: command in windows command prompt

cipher /w:c: command in windows command prompt

Please be careful while using cypher command or backup your data before using it.


Drivers remain among the most important software installed on a PC. Improperly configured or missing drivers can cause all sorts of trouble, so its good to have access to a list of what’s on your PC. That’s exactly what the “driverquery” command does. You can extend it to “driverquery -v” to obtain more information including the directory in which the driver is installed.

powercfg /energy

Powercfg is a very powerful command for managing and tracking how your computer uses energy.

The “powercfg /energy” command can be used to build a detailed power consumption report for your PC, which is output to a directory indicated after the command finishes. This report will let you know of any system faults that might increase power consumption, like devices that are blocking certain sleep modes, or which aren’t properly configured to respond to your power management settings.

You can use the command “powercfg /hibernate on” and “powercfg /hibernate off” to manage hibernation, and you can also use the command “powercfg /a” to view the power-saving states currently available on your PC.

Subscribe to our weekly newsletter to get the latest and greatest technology posts in your inbox.

Please enter your email id to subscribe

[wysija_form id=”1"]

These are not all commands but only some useful commands because not all the commands are useful for all or not all the commands are easy to use by normal user.

To view the comprehensive A to Z list of commands, please read here.

To view the Catagorised list of commands, please read here.

Did you find apk for android? You can find new Free Android Games and apps.
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.