Standard user
netstat -ano
netstat -ano
Lists all TCP and UDP connections and listening ports, with the process ID that owns each one.
You need to know which process listens on a port, or whether a connection is established.
Identify the process with Get-Process -Id <pid> and test the port with Test-NetConnection -Port.
Privilege Standard userState impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
Proto, Local Address, Foreign Address, State, PIDImportant persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Shows the current sockets and the process ID behind each one.
Does not prove a firewall allows traffic to the listening port.
Identify the process with Get-Process -Id <pid> and test the port with Test-NetConnection -Port.
Command guidance
Execution context
Standard user
Use when
You need to know which process listens on a port, or whether a connection is established.
Important fields
Proto, Local Address, Foreign Address, State, PID
Common problems
port already in use by another process; many TIME_WAIT or SYN_SENT entries
Operational impact
Read-only.
Technical context
Match the PID with tasklist /fi "PID eq <pid>" or Get-Process -Id <pid>. Get-NetTCPConnection gives the same data in PowerShell.