Networking-Oriented CLI Tools(WIN)

Ping

A command used to test connectivity to a specific IP address or hostname, measuring round-trip time.

Example: ping www.example.com

Tracert

A tool that traces the route packets take to reach a destination, helping diagnose latency and routing issues.

Example: tracert www.example.com

Ipconfig

Displays the current network configuration, including IP addresses, subnet masks, and gateways.

Example: ipconfig /all

Nslookup

Queries DNS to obtain domain name or IP address mapping, useful for troubleshooting DNS issues.

Example: nslookup www.example.com

Netstat

Displays active network connections, listening ports, and routing tables, helping identify open connections.

Example: netstat -an

Route

Displays and modifies the IP routing table, useful for diagnosing routing issues.

Example: route print

Telnet

Connects to remote servers using the Telnet protocol, useful for testing connectivity to specific ports.

Example: telnet www.example.com 80

PowerShell

A powerful scripting and command-line shell for advanced networking tasks and management.

Example: Test-Connection www.example.com

ARP

Displays and modifies the Address Resolution Protocol (ARP) cache, useful for viewing IP to MAC address mappings.

Example: arp -a

Netsh

A versatile command-line tool for configuring and managing network settings.

Example: netsh interface show interface

Whois

Queries the WHOIS database for domain registration information, useful for gathering domain ownership details.

Example: whois example.com

Nmap

A powerful network scanning tool that discovers hosts and services on a network, useful for security assessments.

Example: nmap -sP 192.168.1.0/24

Pathping

Combines the functionality of ping and tracert to provide information about network latency and packet loss along the route to a destination.

Example: pathping www.example.com

Get-NetTCPConnection (PowerShell)

Retrieves TCP connection information, including local and remote addresses and ports.

Example: Get-NetTCPConnection

Test-NetConnection (PowerShell)

Tests the network connection to a specified host and port, providing detailed information about the connection.

Example: Test-NetConnection www.example.com -Port 80

Netsh Firewall

A command-line tool for managing Windows Firewall settings.

Example: netsh advfirewall show allprofiles

Windows Event Viewer

A tool for viewing and analyzing event logs, which can help identify security-related events and issues.

Example: eventvwr.msc

Wireshark (Windows version)

A network protocol analyzer that captures and displays packet data for analysis.

Example: wireshark

PsExec

A command-line tool that allows you to execute processes on remote systems.

Example: psexec \\remotePC cmd

20. PowerShell Remoting

A feature that allows you to run PowerShell commands on remote computers.

Example: Enter-PSSession -ComputerName remotePC

SFC (System File Checker)

A utility that scans and repairs corrupted system files, which can affect network functionality.

Example: sfc /scannow

Disk Cleanup

A tool that helps free up space on your hard drive, which can improve system performance, including network performance.

Example: cleanmgr