Show IP Configuration
Beginner
πͺ Command Prompt (CMD)
ipconfig /all
π» PowerShell
Get-NetIPConfiguration -Detailed
Show Network Interfaces
Beginner
πͺ Command Prompt (CMD)
netsh interface show interface
π» PowerShell
Get-NetAdapter | Format-Table Name, InterfaceDescription, Status, LinkSpeed, MacAddress
Show ARP Cache
Beginner
πͺ Command Prompt (CMD)
arp -a
π» PowerShell
Get-NetNeighbor | Format-Table IPAddress, LinkLayerAddress, State
Show Routing Table
Intermediate
πͺ Command Prompt (CMD)
route print
π» PowerShell
Get-NetRoute | Format-Table DestinationPrefix, NextHop, InterfaceAlias, RouteMetric
Show All Network Connections
Beginner
πͺ Command Prompt (CMD)
netstat -ano
π» PowerShell
Get-NetTCPConnection | Format-Table LocalAddress, LocalPort, RemoteAddress, RemotePort, State, OwningProcess
Show Listening Ports
Beginner
πͺ Command Prompt (CMD)
netstat -ano | findstr LISTENING
π» PowerShell
Get-NetTCPConnection | Where-Object {$_.State -eq "Listen"} | Format-Table LocalAddress, LocalPort, OwningProcess, @{N='Process';E={(Get-Process -Id $_.OwningProcess).ProcessName}}
Show Established Connections
Beginner
πͺ Command Prompt (CMD)
netstat -ano | findstr ESTABLISHED
π» PowerShell
Get-NetTCPConnection | Where-Object {$_.State -eq "Established"} | Format-Table LocalAddress, LocalPort, RemoteAddress, RemotePort, @{N='Process';E={(Get-Process -Id $_.OwningProcess).ProcessName}}
Show DNS Cache
Beginner
πͺ Command Prompt (CMD)
ipconfig /displaydns
π» PowerShell
Get-DnsClientCache | Format-Table Entry, Name, Type, TimeToLive
Clear DNS Cache
Beginner
πͺ Command Prompt (CMD)
ipconfig /flushdns
π» PowerShell
Clear-DnsClientCache
Show Network Shares
Beginner
Show Active SMB Sessions
Intermediate
πͺ Command Prompt (CMD)
net session
π» PowerShell
Get-SmbSession | Format-Table ClientComputerName, ClientUserName, NumOpens, SecondsIdle
Test Network Connectivity
Beginner
πͺ Command Prompt (CMD)
ping google.com
π» PowerShell
Test-Connection google.com -Count 4
Trace Network Route
Beginner
πͺ Command Prompt (CMD)
tracert google.com
π» PowerShell
Test-NetConnection google.com -TraceRoute
DNS Lookup
Beginner
πͺ Command Prompt (CMD)
nslookup google.com
π» PowerShell
Resolve-DnsName google.com
Show Network Statistics
Intermediate
πͺ Command Prompt (CMD)
netstat -s
π» PowerShell
Get-NetTCPConnection | Group-Object State | Select-Object Count, Name
No commands match