PS C:\> Get-Process -Name sshd Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName ------- ------ ----- ----- ------ -- -- ----------- 128 12 1880 7464 0.05 2588 0 sshd 139 10 2496 8444 0.06 6228 0 sshd 145 10 2428 8476 0.03 6808 0 sshd PS C:\> Get-NetTCPConnection -OwningProcess (Get-Process -Name sshd).Id -ErrorAction SilentlyContinue LocalAddress LocalPort RemoteAddress RemotePort State AppliedSetting OwningProcess ------------ --------- ------------- ---------- ----- -------------- ------------- :: 22 :: 0 Listen 2588 192.0.2.150 22 192.0.2.1 54497 Established Internet 2588 0.0.0.0 22 0.0.0.0 0 Listen 2588