ipconfig | displays the current TCP/IP network configuration values assigned to the local computer, including IP address, subnet mask, and default gateway |
ipconfig /all | displays detailed configuration information for all network adapters, including physical (MAC) address, DHCP lease information, and DNS server addresses |
findstr | searches for a specific string or pattern within a file or text output It's often used in conjunction with other commands to filter results |
ipconfig /release | releases the current DHCP lease for all network adapters on the local computer |
ipconfig /renew | renews the DHCP lease for all network adapters on the local computer |
ipconfig /release && ipconfig /renew | P.S: Need to use it together |
ipconfig /displaydns | displays the contents of the DNS resolver cache, which contains information about recently accessed websites and their IP addresses |
clip | copies the output of a command to the Windows clipboard, allowing you to paste it into another application |
ipconfig /flushdns | clears the contents of the DNS resolver cache |
nslookup | queries DNS servers to obtain domain name or IP address mapping information |
cls | clears the command prompt screen |
getmac /v | displays the MAC address (physical address) of all network adapters installed on the local computer, along with other information |
powercfg /energy | generates a detailed report of the computer's power consumption and energy efficiency |
powercfg /batteryreport | generates a report of the computer's battery usage over time |
assoc | displays or modifies file type associations |
chkdsk /f | scans the file system on a specified drive and fixes errors found |
chkdsk /r | scans the file system on a specified drive, locates bad sectors, and recovers readable information |
sfc /scannow | scans the Windows system files for corruption and attempts to repair any problems found |
DISM /Online /Cleanup /CheckHealth | checks the health of the Windows image and reports any issues found |
DISM /Online /Cleanup /ScanHealth | scans the Windows image for component store corruption and reports any issues found |
DISM /Online /Cleanup /RestoreHealth | restores the Windows image from a known good source |
tasklist | displays a list of all currently running processes on the local computer |
taskkill | terminates a specified process or group of processes |
netsh wlan show wlanreport | generates a report of the wireless network connection history on the local computer |
netsh interface show interface | displays a list of all network interfaces on the local computer, including their status |
`netsh interface ip show address | findstr “IP Address”` |
netsh interface ip show dnsservers | displays the DNS server addresses assigned to all network adapters on the local computer |
netsh advfirewall set allprofiles state off | disables the Windows Firewall for all network profiles (Domain, Private, and Public) |
netsh advfirewall set allprofiles state off | turns off the Windows Firewall for all network profiles (domain, private, public) |
netsh advfirewall set allprofiles state on | turns on the Windows Firewall for all network profiles (domain, private, public) |
ping | sends a series of ICMP echo requests to a specified network address or host name to test the connectivity between the local computer and the target host |
ping -t | continuously sends ICMP echo requests to a specified network address or host name until the command is manually interrupted It is often used for testing network connectivity and stability |
tracert | traces the path that an IP packet takes from the local computer to a specified network address or host name by sending a series of ICMP echo requests with increasing Time-To-Live (TTL) values |
tracert -d | is similar to tracert, but it does not perform reverse DNS lookups to resolve IP addresses to host names |
netstat | displays active network connections, listening ports, and related network statistics |
netstat -af | displays all active TCP and UDP connections and their respective protocol (IPv4 or IPv6) for all network interfaces |
netstat -o | displays all active network connections, listening ports, and related network statistics, including the process ID (PID) of the process that is using each connection |
netstat -e -t 5 | displays the Ethernet statistics and active TCP connections for 5 seconds before terminating |
route print | displays the local IPv4 and IPv6 routing tables, including the destination network addresses, network masks, gateways, interface indexes, and metrics |
route add | adds a new route to the local IPv4 or IPv6 routing table |
route delete | removes a route from the local IPv4 or IPv6 routing table |
shutdown /r /fw /f /t 0 | shuts down and restarts the local computer immediately (/t 0), and forces all applications to close (/f). The /fw parameter directs the system to reboot into the firmware (UEFI or BIOS) setup utility |