Wireless networks have now mostly replaced wired LAN and you will find an abundance of wireless networks everywhere. Windows 10 offers various ways to manage your wireless networks using the taskbar, control panel, settings app, and Command Prompt.
Of all the options mentioned, the Command Prompt helps to efficiently manage and control your wireless networks. The command-line utility helps perform advanced functions, troubleshoot, and solve major wireless network issues in Windows10.
Command-line tools to manage Wireless networks
In this article, we list some of the useful commands to manage wireless networks using Command Prompt in Windows 10:
Let us take a look at their functions in brief.
Ping is a command-line utility used to test network connectivity. The ping command sends a data packet to a specific domain name or a destination IP address over the network and checks if it receives a response successfully from the target address. Additionally, it estimates the approximate round trip time it takes for the data packets to travel destination address and return back. Type ping www.google.com (or type internet server you want to test )
You can also use the ping command with advanced switches for troubleshooting. To know the advanced options execute the following in CMD:
command ping /?
For example, type the following (or type the internet server and packet size you want to send ) to increase the number of packets:
ping www.google.com - n 10
Tracert is a command-line utility used to trace the route of the data packets sent over the network. Just like ping, Tracert is used to test network connectivity issues. The command traces the route of the data packets to reach the destination and tells you how many nodes it encountered to reach the destination server. If you are facing network connectivity issues, this command tells you on which hop the problem is occurring.
Type the following (or type internet server you want to test)-
tracert www.google .com
The output shows the detailed list of each hop along with the IP address of the node and latency between your Windows and that particular hop.
Pathping is a command-line utility used to troubleshoot network connectivity issues. This command is similar to Tracert in function but more detailed information of the data packet route.
The command sends data packets to a destination address and analyzes the route in detail. It computes packet loss on a per-hop basis and helps find out the problematic hop.
Execute the following (or type domain server you want to test):
Ipconfig is a popular command-line utility used to test network connectivity issues on a TCP/IP network. It gives detailed information about the IPv4 address, WLAN Adapter, and Ethernet Adapter. It is often used with switches to execute certain tasks.
Execute the following to view connection configurations-
Execute the following to know more about the advanced switches-
Getmac is a command-line utility used to retrieve the mac address of your computer as well as remote computers. In Windows, MAC address is nothing but a physical address used to identify devices connected to your computer network. You can use a mac address to limit the hardware devices connected to the network.
Type the command to get mac addresses of each hardware connected to the network:
Nslookup is a command-line utility for finding out the Domain Name System to obtain information like domain name, IP address or DNS records. This command is basically used to find the IP address of a certain host.
For example, type this (or type the hostname you want to query)-
Netsh is a command utility used to display the network configuration of every network adapter in your system. Using this command with switches you can modify the network settings on a local as well as a remote computer.
To know all the commands type:
Route command is used to view, add, or delete the row contents of the routing table. The route command is used with other switches to view the route, add the route, delete route, or modify the existing route.
Type this command in the command prompt to know more:
Netstat is a networking utility command used to display the network and protocol statistics. It lists the information about endpoints of TCP/UDP, routing table and network interface. It displays all the active TCP/UDP connections on your computer and helps you know on which port address are open for tasks.
Type this in the command prompt to view all the port addresses on which TCP/UDP connections are running-
ARP is a command-line utility used to display a resolved Mac address. It displays and modifies the IP address to physical address translation tables used by address resolution protocol. Every time your computer uses ARP to find out the Mac address for an IP address and stores the mapping in arp cache for future lookups.
This command is useful to find if there is any duplicate IP assignment. To display the cache entry type: