
Using network commands in CMD , also known as the Command Prompt , opens up a world of possibilities for performing advanced tasks on Windows systems. From diagnosing network problems to managing Wi-Fi configurations, this tool is essential for users who want to go beyond the usual graphical options. Below, we'll explore the most important commands in depth, organized into categories useful for networking, diagnostics, configuration, and advanced system management.
Once you master these commands, you'll not only be able to manage your network more efficiently, but you'll also be able to quickly troubleshoot and customize your Windows environment. All of this comes with detailed instructions that you can use directly from your keyboard, without the need for additional software. It's time to explore everything CMD has to offer!
Network and connectivity commands, the essentials
In this section, we will detail those commands related to networks that are frequently used by both system administrators and users looking to solve connectivity problems.
ipconfig
The ipconfig command is one of the most useful for obtaining information about your computer's TCP/IP network configuration. It also allows you to perform essential tasks such as releasing or renewing IP addresses and clearing the DNS cache.
- ipconfig: Displays basic network configuration information.
- ipconfig / all: Provides complete information about adapters, MAC addresses, DNS and more.
- ipconfig / release: Releases the IP address assigned by DHCP.
- ipconfig / renew: Request a new IP address from the DHCP server.
- ipconfig / flushdns: Clears the DNS cache, useful for resolving connection issues.
ping
One of the most basic but essential commands , ping (header capture) allows you to check connectivity between your computer and a server or device on the network. Ideal for diagnosing connectivity problems.
- ping [domain or IP]: Send 4 ICMP packets to the destination and display the response times.
- ping -n [number]: Define how many packets you want to send.
- ping -t:Packages will be sent indefinitely until manually interrupted.
tracert
The tracert command lets you trace the path a packet takes to reach its destination. It shows the different "hops" a packet passes through in a network.
- tracert [domain or IP]: Displays the routers through which the packet passes.
- tracert -d: Bypass DNS address resolution for faster output.
PathPing
This command combines the functionalities of ping and tracert , providing a detailed analysis of the route and any problems that may occur.
- pathping [domain or IP address]: Displays detailed statistics, such as packet loss.
getmac
The getmac command helps you obtain the MAC address of the network adapters on the computer it is running on.
- getmac: Lists available physical addresses.
- getmac /v: Provides more detailed information about each adapter.
nslookup
With nslookup , you can diagnose problems related to DNS name resolution . This is especially useful for verifying whether a domain is correctly linked to its IP address.
- nslookup [domain name]: Resolves a domain and provides its IP address.
- nslookup [domain name] [DNS server]: Use a specific DNS server for the query.
netstat
The netstat command is ideal for monitoring active network connections on your computer. It allows you to see which ports are open , the IP addresses connected to the computer, and more.
- netstat: List all active TCP connections.
- netstat -a: Displays all active connections, including listening ports.
- netstat -n: Displays connections with numeric addresses instead of domain names.
Advanced Network Commands for System Management
The command prompt isn't limited to networking tasks. You can also use it to configure advanced operating system settings and manage computer performance.
hostname
Want to know your computer's name on the network? The hostname command shows you the local hostname with a single click.
- hostname: Displays the name of the computer.
sfc
The sfc command is crucial for verifying and repairing operating system files . If you detect that Windows is malfunctioning, this command will be your best ally.
- sfc / scannow: Scans the entire system and repairs corrupt files automatically.
chkdsk
Use chkdsk to check the integrity of your disks and correct file system errors .
- chkdsk [drive]:: Scan the specified drive.
- chkdsk / f: Corrects errors found.
- chkdsk / r: Recovers information from bad sectors.
tasklist and taskkill
To manage running tasks and processes , these two commands are essential. ` tasklist` will give you a list of all running tasks, while ` taskkill` will allow you to terminate specific processes.
- tasklist: List all active tasks.
- taskkill /im [process name]: Stop a specific process.
Useful tricks to work faster in CMD
The Command Prompt (CMD) is full of little tricks and features that can make you more efficient . Here are a few of them:
- Arrow up: Retrieves the last executed command.
- Ctrl+C: Stop a running command.
- | clip: Copies the result of a command directly to the clipboard.
Using the Command Prompt (CMD) in Windows not only allows you to perform diagnostics and advanced configurations, but also provides you with unique tools to keep your system up to date. Mastering these commands will make you an expert in managing your PC , optimizing time and resources.
Table of Contents




