Thanks to : Brothers from Team Brave

Windows cmd

• ipconfig: It displays the current configuration of the installed IP stack for all network interfaces. ‘ipconfig’ can provide IP Address, Subnet Mask, Default Gateway, MAC Address, DNS Servers.

• ipconfig /all: This command displays detailed information about all network interfaces on the machine, including IP addresses, subnet masks, gateways, DNS servers, and more.

• using the pipe (|) character: We can utilize the ‘find’ or ‘findstr’ command to search for specific strings in the output of another command. By using the pipe (|) character, we can send the output of one command (like ipconfig /all) to another command (like findstr). To search for the string "DHCP Server" in the output of ipconfig /all, we can use the following command:

ipconfig /all | findstr /i "DHCP Server"

ipconfig /all | findstr "DHCP Server"

dir | clip: To copy the output of a comand. After executing ‘dir | clip’, we can paste the directory listing anywhere we'd like, such as into a text editor, an email, or any other application that accepts pasted text. This is a quick way to capture the output of a command without redirecting it to a file.

nslookup: “name server lookup" is a command-line utility used to query Domain Name System (DNS) servers to obtain domain name or IP address mappings, as well as other DNS records.

nslookup -type=mx example.com
#this will look if any mail server is there on example.com

getmac: It is a command-line utility in Windows that displays the Media Access Control (MAC) address of the network adapters on a computer. A MAC address is a hardware identification number assigned to network interfaces, and it is used for addressing local area networks (LANs).

getmac /v
getmac 

powercfg: It is a command-line utility in Windows that allows users to manage and configure power settings. It provides functionality to manage power plans, battery use, sleep settings, and more.

We can also generate a detailed battery usage report using the following command and saves it as an HTML file. powercfg /batteryreport

chkdsk: It is a command-line utility in Windows that checks the file system and metadata of a volume for logical and physical errors. It can be used to detect and sometimes repair problems related to bad sectors, lost clusters, cross-linked files, and directory errors.

shutdown: The shutdown command in the Windows command line is used to shut down, restart, or log off a computer. It provides various options to tailor the shutdown process, including specifying a delay or adding a comment explaining the reason for the shutdown.

tasklist: The ‘tasklist’ command in the Windows command line (or Command Prompt) displays a list of currently running processes on the computer. It's a command-line equivalent to viewing processes in the Task Manager but provides the advantage of being usable in scripts, remote sessions, or scenarios where a graphical interface isn't accessible or convenient.