Command | Description |
---|---|
ipconfig |
Displays basic IP configuration. |
ipconfig /all |
Shows detailed IP information. |
ipconfig /release |
Releases the current DHCP IP address. |
ipconfig /renew |
Renews the DHCP IP address. |
ipconfig /flushdns |
Clears the local DNS resolver cache. |
ping [address] |
Tests network connectivity. |
tracert [address] |
Traces the route to a network host. |
pathping [address] |
Traceroute + packet loss analysis. |
nslookup [domain] |
Resolves a domain to an IP address. |
netstat -an |
Lists open ports and active connections. |
netstat -ano |
Same as above, with PID. |
netstat -b |
Shows the executable associated with each connection (admin). |
arp -a |
Displays the ARP table. |
route print |
Displays the routing table. |
route add [dest] MASK [mask] [gateway] |
Adds a static route. |
netsh interface ip show config |
Displays interface IP configs. |
netsh wlan show profiles |
Lists saved Wi-Fi profiles. |
netsh wlan show interfaces |
Shows Wi-Fi interface status. |
netsh wlan export profile [name] folder=[path] key=clear |
Exports Wi-Fi profile with password. |
netsh advfirewall show allprofiles |
Displays current firewall settings. |
telnet [ip] [port] |
Tests connectivity to a port (must be enabled) |
curl [url] |
Sends HTTP(S) requests (available in Windows 10+) |
Command | Description |
---|---|
whoami |
Shows the current logged-in user. |
net user |
Lists local user accounts. |
net user [username] [password] /add |
Creates a new user. |
net localgroup administrators [user] /add |
Adds user to admin group. |
net share |
Lists shared folders on the machine. |
net use |
Lists mapped network drives. |
net use Z: \\server\share |
Maps a network drive. |
net config workstation |
Displays the workstation configuration. |
Command | Description |
---|---|
systeminfo |
Displays system info, including domain/workgroup. |
tasklist |
Lists running processes. |
taskkill /PID [id] /F |
Forces termination of a process. |
wmic nic get name,macaddress |
Lists network adapters and MAC addresses. |
wmic process where name='name.exe' get processid |
Finds PID of a process. |
chkdsk |
Checks disk integrity (useful in network-related I/O issues). |
sfc /scannow |
Scans and repairs corrupted system files. |
Command | Description |
---|---|
dir |
Lists directory contents. |
cd [path] |
Changes current directory. |
mkdir [name] |
Creates a new folder. |
del [file] |
Deletes a file. |
rmdir /s /q [folder] |
Deletes folder and all contents. |
copy [src] [dest] |
Copies a file. |
xcopy [src] [dest] /E /I |
Copies files and directories recursively. |
move [src] [dest] |
Moves files or folders. |
Command | Description |
---|---|
cls |
Clears the screen. |
echo [text] |
Prints text to screen. |
start [file|url] |
Opens a file, program, or website. |
pause |
Waits for key press (used in batch scripts). |
exit |
Closes the terminal window. |
[command] /? |
Displays help for a specific command. |