command prompt cmd

Command Prompt also called CMD is a command line interpreter application in Windows operating system. Command prompt is mostly used to execute batch files or to perform different functions that you give to it. With the use of command prompt you can troubleshoot network, hardware and other type of problems. Command prompt can be accessed from Command prompt shortcut which can be found in Start Menu -< Accessories, or by pressing shortcut Win+R from your keyboard and write CMD and press enter. As a command prompt user, you should know that many important commands from command prompt can run only if you run command prompt as administrator. You can do it by pressing Start Menu, then in search bar write CMD, right click on CMD and select “Run as Administrator. See the following screenshot.

cmd run as administrator

 

Command to Find Your IP Address and Information About Your Internet Connection

ipconfig /all

This is the command that will tell you the IP address you are using, also more information like DNS servers, host bane, node type, Wins Proxy, DHCP, MAC address, default gateway, subnet mask and more. Try it in your Command Prompt window.

ipconfig command also can be use with the following parameters instead of /all parameter, see bellow list of attributes and what they do:

/? Displays this help message

/release           Releases the IP address for the specified adapter

/renew             Renews the IP address for the specified adapter

/flushdns         Purges the DNS Resolver cache

/registerdns    Refreshes all DHCP leases and reregisters DNS names

/displaydns     Displays the contents of the DNS Resolver Cache

/showclassid   Displays all the DHCP ClassIds allowed for the specified adapter

/setclassid       Modifies the DHCP ClassId

 

Command to Display Where Your Computer is Connected

netstat

This command will display active TCP connections and ports where the computer is connected to. Also it wiill show ethernet statistics, the IP routing table, IPv4 and IPv6 statistics.

netstat -a

Using the netstat command with the -a parameter can help you to find if hacker is connected to your computer. The command will return a list of computers that your computer is connected to. See the Proto column where you will see the type of data transmission taking place TCP or UDP. Local address column gives the port with which your computer is connected to an external computer, also the Foreign Address column gives the external computer you are connected to.

 

Command to Get Detailed System Information

systeminfo

Using the following command in your Command Prompt windows you will get detailed information about the computer and operating system, information like: operation system, configuration, security information, product ID and more. See the list bellow of information you will get.

  • Host Name
  • OS Name
  • OS Version
  • OS Manufacturer
  • OS Configuration
  • OS Build Type
  • Registered Owner
  • Registered Organization
  • Product ID
  • Original Install Date
  • System Up Time
  • System Manufacturer
  • System Model
  • System type
  • Processor(s)
  • BIOS Version
  • Windows Directory
  • System Directory
  • Boot Device
  • System Locale
  • Input Locale
  • Time Zone
  • Total Physical Memory
  • Available Physical Memory
  • Virtual Memory Max Size
  • Virtual Memory Available
  • Virtual Memory In Use
  • Page File Location(s)
  • Domain
  • Logon Server
  • Hotfix(s)
  • NetWork Card(s)

 

Command to List All Installed Drivers and Their Properties

driverquery

This command will display the list of all installed device drivers and their properties.

 

Command to Display Applications and Services that are Currently Running

tasklist

This command will display a list of applications and services with their Process ID (PID) for all tasks running on local computer or even on a remote computer.

To list applications and services for a remote computer use the command with the following parameter:

tasklist /s   Computer   You can write the computer name or the computer IP address.

 

Command to End a Program

taskkill

This command will end one ore more programs if you write as a parameter the program name or process ID. For example:

taskkill /pid ProcessID

taskkill /im ProgramName.exe

Adding /f at the end will force kill the program.

 

Command to Recover Information From A Corrupt File

recover filename.type

If you have a file that cannot be read because its damaged, or your disk has damaged sectors. You can try to recover at least some information from the file. The data from the file which is not damaged will be recovered, other damaged data will be lost.

Command to View Hard Drive’s Entire Directory Structure

tree

With tree command you can list a map of your computer directories. You can also execute tree from different directories to see the folder structure.

Commands to Get Help

help

command /?

These two commands will proved help, like description of command and commands and the parameters that can be used. Try help to get a list of basic commands. Then you can choose a command and write /? parameter. It will give you the commands syntax and example of how to use it.

Leave a Reply