Basic Windows Networking Commands

Pradeep Mudhol
5 min readAug 20, 2023

--

This blog will tell you about the basic networking commands:

-->Every system is connected to numerous different networks and systems through internal or external network channels. These network settings often run into issues and affect the system’s working. Such network problems can be resolved using ‘networking commands.’

These commands are specifically designed to troubleshoot network problems with minimum complexity using the windows command prompt tool.

Next, let’s take a look at the networking commands

  1. Ping:Ping is used to show website IP address.
Ping command

2.powershell start cmd -v runAs:Run the Command Prompt as an Administrator (It opens another command prompt window as an administrator).

powershell command

3.driverquery :Lists All Installed Drivers (It is important to have access to all drivers because they often cause problems).

driverquery command

4.chdir :To change the directory

change directory

5.systeminfo :Shows Your PC’s Details (If we want more information about syatem).

system information

6.set :Shows your PC’s Variables

set to shows PC’s variables

7.prompt :Changes the Default Text Shown before Entering Commands (with $G syntax — prompt prompt_name $G).

prompt with $G

(without $G we won’t get the greater than symbol in front of the text).

prompt eithout $G

8.clip :Copies an Item to the Clipboard (For example, dir | clip copies all the content of the present working directory to the clipboard).

clip

9.assoc :Lists Programs and the Extensions They are Associated With

Associated

10.title :Changes the command prompt window title using the format — title window-title-name

title

.fc :Compares Two Similar Files (If we want difference between the two files,we enter command — fc “file-1-path” “file-2-path”).

11.cipher :Wipes Free Space and Encrypts Data (we can use cipher command to wipe the driver clean and encrypt such files).

cipher

12.netstat -an :Shows Open Ports,their IP Address and States

13.color :Changes the Text Color of the Command Prompt (Enter color attr to see the colors you can change to).

color list

.Entering color 2 changes the color of the terminal to green :

Text color change

14.ipconfig :Shows Information about PC IP Address and Connections

ipconfig

15.sfc :system file checker (This command scans computer for corrupt files and repairs them).

system file checker

16.powercfg :Controls Configurable Power Settings (It shows information about the power state of our PC).

powercfg

.For example,we can use powercfg /energy to generate a battery health report (It will generate an HTML file containing the report).

powercfg energy

.del :Deletes a File

.attrib +h +s +r folder_name :Hides a Folder (To shows the folder again attrib -h -s- r folder_name).

.start website-address :Logs on to a Website from the Command Line

17.tree :Shows the Tree of the Current Directory or Specified Drive

tree

18.ver :It Shows the Version of the OS

version

19.tasklist :Shows Open Programs

tasklist

.Command shows how to close an open task — To kill a task,run taskill /IM “task.exe” /F.

taskkill

20.date :Shows and Changes the Current Date

time :Shows the current time

Date and Time

21.vol :Shows the Serial Number and Label Information of the Current Drive

Volume

.CTRL +C :Stops the Execution of a Command

.help :Provides a Guide to other Commands (for example,powercfg -help shows how to use the “powercfg” command).

.echo :Shows Custom Message or Messages from a Script or File

.mkdir :Creates a Folder

.rmdir :Deletes a Folder

.more :Shows More information or the Content of a File

.ren :Renames a File with the syntax — ren filename.extension new-name.extension

.cls :Clears the Command Line

.exit : Closes the Command Line

. shutdown : Shuts down , Restarts , Hibernates , Sleeps the Computer. (Enter shutdown in the command line so you can see the extensions you can use to perform the actions.For example, shutdown /r will restart our computer)

--

--