Advertisement
lamora

powershell test

Jul 11th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-NetTCPConnection | Select-Object -Property State,LocalAddress,LocalPort,RemoteAddress,RemotePort,OwningProcess, @{l="ProcessName";e={Get-Process -Id $_.owningprocess | ForEach-Object {$_.ProcessName} }} | Sort-Object -Property State | Format-Table -AutoSize -GroupBy State
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement