# 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