How to display network configuration without using the Graphical Interface

In this article I will show you how you can view your server’s network interface configuration without using the GUI (Graphical User Interface). As you may already know, Windows provides us with command prompt and Powershell which are the most powerful tools you can use to interact with this OS.
We will start by using some of Powershell’s commands. CMDlets, as they are called, offer a lot of configuration and features that can be used to interact with network adapters, interfaces, IP configuration, etc. Some of the CMDlets that I will use may not probably be available in your Powershell version. I’m using Windows Server 2012 so I have Powershell version 3.0. To check your Powershell version type in one of the following commands: $psversiontable or Get-host.
The following image displays the Get-Host command issued on a Windows Server 2012:

Get-Host Powershell
As you can see, the Version is 3.0. Now I will use the $psversiontable command on a Windows Server 2008 R2:
From this output we can determine that the PSVersion is 2.0. You can upgrade your version of Powershell by installing the Windows Management Framework 3.0 available for download from Microsoft’s website.
OK, now I will use some of the available CMDlets in Powershell 3.0. The following CMD let will display our network adapter information:
Get-NetAdapter Powershell
I’m using a VMware virtual machine so the network adapter is displayed as vmxnet3 Ethernet Adapter. Now, we can further check our network configuration by typing Get-NetAdapterBinding. I will put in parallel the same thing that you can achieve by using the GUI:
On the right column, you can see what bindings are enabled on this network adapter (see the checkboxes on the left image). To view the advanced properties of our adapter, I will use the Get-NetAdapterAdvancedProperty cmdlet. I will show you the same results as with using the GUI:
Get-NetAdapterAdvancedProperty cmdlet
To view the hardware information of your network adapter, use the Get-NetAdapterHardwareInfo cmdlet. To view the network statistics for this adapter, use the Get-NetAdapterStatistics command. Here you can view the Bytes Sent or Received and the Sent or Received Unicast Packets:
To view your IP configuration, use the Get-wmiobject cmdlet with the following parameters:
Get-wmiobject Powershell
I haven’t captured all the output of this command, you can format it by using the Format-Table cmdlet to display only the needed information.
In Command Prompt things are more simple, the ipconfig command is used to display all configuration information. Let’s see the available parameters for this command:
Ipconfig command
Use the ipconfig with the /all parameter to view the detailed configuration. The same output can be achieved by using the netsh interface ip show config  command.
If you know more commands or other tools with which you can view your computer’s configuration without using the GUI, please leave a comment. If you’ve enjoyed this post share it to others and rate it. I wish you all the best and stay tuned for the next article.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s