Network discovery, connections, shares and DNS
βŒ‚ CMD SHELL 15 COMMANDS
All (15)
Beginner (12)
Intermediate (3)
βŒ•
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
πŸͺŸ Command Prompt (CMD)
net share
πŸ’» PowerShell
Get-SmbShare | Format-Table Name, Path, Description, CurrentUsers
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
● | NETWORK | 15 commands Β· CMD & PowerShell