PowerShell
Get-NetTCPConnection -State Established | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
PID = $_.OwningProcess
Process = $p.ProcessName
}
} | Sort-Object Process,RemoteHinweis: Nur lesend.
PowerShellTCPVerbindungenProzesse