contador pagina web Saltar al contenido

8 CMD commands to manage wireless networks in Windows

enero 21, 2020

8 CMD commands to manage wireless networks in Windows

Sharing is loving!

As a Windows user, the Control Panel and the Settings app can seem quite limiting in what they can do. If you want total and absolute control over your network, that is, access to everything that the operating system has to offer, you will have to start using the command prompt.

If you've never used a command prompt before, don't worry, it's as simple as typing the commands you'll see below.

If you're ready to continue, here are some of the most useful networking commands to know for setting up and troubleshooting your home network.

SEE ALSO: 9 free tools to deactivate and prevent Windows 10 from spying and following you


ping is one of the most basic but useful networking commands to use in the command prompt application; it tells you if your computer can reach a destination IP address or domain name, and if so , how long it takes for the deals to get there and back.

Example of use:

The command works by sending multiple packets of data and seeing how many of them come back. If some of them don't come back, this will tell you (lost). Losing packets results in poor performance in games and streaming, and it's a nifty way to test.

By default, it sends 4 packets, each waiting 4 seconds before ending. You can increase the number of packets like this:

ping -n 10

And you can increase the delay time like this (the value is in milliseconds):

ping -w 6000


tracerts means Trace Route. For example, it sends a data packet as a way to resolve any network issues you may have, but it instead tracks the route of the packet while it jumps from server to server.

Example of use:

The command generates a line-by-line summary of each hop, including the latency between you and that particular hop and the IP address of that hop (plus the domain name if available).

Why do you see three latency reads per hop?

The network controller sends three packets per hop to cover packet loss or slowdown. Remember that it does not represent your real latency. It is best to average all three.


pathping is similar to the tracertexception of more information, which means that it takes a lot more time to execute it. After having sent packets from you to a given destination, it analyzes the borrowed route and calculates the loss of packets per hop.

Example of use and output:


ipconfig often appears as the most commonly used networking command on Windows. Not only is it useful for the information it provides, but you can combine it with a few switches to perform certain tasks.

Example of use and output:

The default output displays each network card in your system and how it resolves.IPv4 addressand the details of thedefault gatewayunder the sections Wireless LAN adapter and Ethernet adapter are the most important to know.

Use this switch to clear your DNS cache:

ipconfig /flushdns

Clearing the DNS cache can help when your Internet is working, but a specific website or server is inaccessible for some reason (for example, a website times out and does not load).


Each device that conforms to IEEE 802 standards has a unique MAC address (Media Access Control). The manufacturer assigns MAC addresses and stores them in the device hardware. Some people use MAC addresses to limit the devices that can connect to the network. .

Example of use and output:

You can see multiple MAC addresses depending on the number of adapters read from the network on your system, for example, Wi-Fi and Ethernet connections would have separate MAC addresses.


nslookup stands for Name Server Lookup. It contains a lot of power, but most users will not need this power. For ordinary people like you and me, its main use is to find the IP address behind a certain name. field.

Example of use and output:

Note that some domain names are not read from a dedicated IP address, which means that you can get different IP addresses each time you run the command. This is normal for large websites as they spread their workload across many different machines.

If you want to convert an IP address to a domain name, just enter it in your browser and see where it leads. However, not all IP addresses lead to domain names and many IP addresses are not accessible on the Web. .


netstat is a statistics, diagnostics and network analysis tool. It is powerful and complex but can be quite simple if you ignore the advanced aspects that you do not need to know (assuming that you do not manage a corporate network or massive campus, for example).

Example of use and output:

By default, the command displays all active connections on your system, whether these connections are on the LAN or the Internet. An active connection does not mean that data is moving – it could just mean an open port and ready to accept a connection.

This is because ilnetstat is especially useful for regular users for its ability to display port information, and this can be useful when you need to forward ports.

But the command also has a dozen switches that change the type of information displayed, such as the -switch that displays instead of a routing table.


netsh stands for Network Shell. This is a cmd command for networking that allows you to view and configure just about every network card in your system with more detail and granularity than any of the previous commands. .

Executing lanetshcommand alone will put the command prompt in network shell mode. There are several different contexts in this shell, including one for routing related commands, one for DHCP related commands and one for diagnostics, between others, but you can also use it to execute individual commands.

To see all of the network shell contexts:

And to see all the commands in a context:

You can explore one more layer to find all of the subcommands in those commands:

So, for example, you can run this command to display all of the wireless network drivers on your system and their properties:

netsh wlan show drivers

Network Shell is complex enough to merit an entire article, just know that if you want to get real technicality with your network configuration, you will probably need to use this command line utility.

READ ALSO: 25 Most Useful Command Prompt Commands Any Windows User Should Know

Network commands and other networking solutions

For anyone new to Windows networking commands, a cheat sheet comes in handy. With a few references, you can use a variety of cmd commands to glean information about your network, Wi-Fi, and the Internet. it helps to always know your options, you may want an alternative.

Sharing is loving!