8 CMD Commands to Manage (Wireless) Networks in Windows

in windows •  6 years ago 

As a Windows user, the Control Panel and the Settings app can feel quite limiting in what they can do. If you want full and absolute control over your network, meaning access to everything the operating system has to offer, then you’ll have to start using Command Prompt.

Never used Command Prompt before? Don’t worry. Using it is as simple as typing out the commands you’ll see below. It’s not hard at all and we’ll tell you everything you need to know to get started. But if you’re still unsure, check out our beginner’s guide to Command Prompt.

If you’re ready to continue, here are some of the most useful commands to know for managing and troubleshooting your home network.

  1. PING
    ping is one of the most basic yet useful commands you could know. It tells you whether your computer can reach some destination IP address or domain name, and if it can, how long it takes data to travel there and back again.

Sample usage and output:

The command works by sending out multiple data packets and seeing how many of them return. If some of them don’t return, it’ll tell you (“lost”). Packet loss leads to poor performance in games and streaming, and this is a nifty way to test.

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

ping www.google.com -n 10
And you can increase the timeout duration like this (value is in milliseconds):

ping www.google.com -w 6000

  1. TRACERT
    tracert stands for Trace Route. Like ping, it sends out a data packet as a way to troubleshoot any network issues you might have, but instead tracks the route of the packet as it hops from server to server. (Learn more about how the internet works).
    Sample usage:

    The command outputs 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 domain name if available).

Why do you see three latency readings per hop? Because tracert sends out three packets per hop, in case one of them gets lost or takes an inordinate amount of time that doesn’t represent your true latency. It’s best practice to average the three.

  1. PATHPING
    pathping is similar to tracert except more informative, which means it takes a lot longer to execute. After sending out packets from you to a given destination, it analyzes the route taken and computes packet loss on a per-hop basis.

Sample usage and output:

  1. IPCONFIG
    ipconfig may just be the most-used networking command on Windows. Not only is it useful for the information it provides, but you can combine it with a couple switches to execute certain tasks.

Sample usage and output:

windows-command-ipconfig

The default output shows every network adapter on your system and how they resolve. The IPv4 Address and Default Gateway details under the Wireless LAN Adapter and Ethernet Adapter sections are the most important to know.

Use this switch to flush your DNS cache:

ipconfig /flushdns
Flushing the DNS cache can help when your internet is working, but a specific website or server is unreachable for some reason (e.g. a website times out and won’t load). Learn more about flushing the DNS cache and why.

  1. GETMAC
    Every device that’s compliant with IEEE 802 standards has a unique MAC address (Media Access Control). MAC addresses are assigned by the manufacturer and are stored in the device’s hardware. Some people use MAC addresses to limit which devices can connect to the network.
    Sample usage and output:

You may see more than one MAC address depending on how many network-related adapters are on your system. For example, Wi-Fi and Ethernet connections would have separate MAC addresses.

  1. NSLOOKUP
    nslookup stands for Name Server Lookup. It’s a nifty utility that’s packed with a lot of power, but most users don’t need all of that power. For regular folks like you and me, its main use is finding out the IP address behind a certain domain name.

Sample usage and output:

Note that certain domain names aren’t tied to a dedicated IP address, which means that you may get different IP addresses every time you run the command. This is normal for bigger websites because they spread their workload across many different machines.

If you want to convert an IP address into a domain name, just type it into your browser and see where it leads. Not all IP addresses lead to domain names though, and many IP addresses aren’t reachable over the web.

  1. NETSTAT
    netstat is a tool for network statistics, diagnostics, and analysis. It’s powerful and complex, but can be simple enough if you ignore the advanced aspects that you don’t need to know about (assuming you aren’t managing a massive business or campus network, for example).

Sample usage and output:

By default, the command shows all “active connections” on your system whether those connections are on LAN or across the internet. An active connection doesn’t mean data is being moved — it could just mean a port that’s open and ready to accept a connection.

Indeed, netstat is mostly useful to regular users for its ability to show port information, and that can come in handy when you need to forward ports.

  1. NETSH
    netsh stands for Network Shell. It’s a command that lets you view and configure pretty much every network adapter on your system, in more detail and granularity than any of the preceding commands.

Running the netsh command on its own will shift the Command Prompt into network shell mode. There are several different “contexts” within this shell, including one for routing-related commands, one for DHCP-related commands, and one for diagnostics, among others. But you can use it to run individual commands, too.

To see all network shell contexts:

windows-command-netsh-help

And to see all commands within a context:

You can drill down one more layer to find all of the subcommands within those commands:

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


It’s an advanced command that’s complex enough to deserve an entire article of its own. Just know that if you want to get real technical with your network configuration, you’ll probably need to use this command line utility.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://www.makeuseof.com/tag/commands-manage-wireless-networks-windows/

Congratulations @sunzenki! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!