# cmd # 6540 为 PID netstat -ano | findstr TCP.*6540$
# powershell Get-NetTCPConnection -OwningProcess 6540 | Sort-Object CreationTime | Format-Table Local*, Remote*, State, CreationTime
# 用 Where-Object 过滤掉临时端口(Bound) Get-NetTCPConnection -OwningProcess 6540 | Where-Object {$_.State -ne 'Bound'} | Sort-Object CreationTime | Format-Table Local*, Remote*, State, CreationTime
本文出自 qbit snap