ETidalgo
6/17/2018 - 7:43 PM

Networking

Networking stuff I always forget

netstat -an | sls 445

Get-NetAdapter -InterfaceIndex (Get-NetRoute -NextHop 10.50.70.254 | select -expand ifindex)
Get-NetAdapterBinding | ? DisplayName -like '*sharing*'
Get-NetTCPConnection -LocalPort 2095
get-process -id (Get-NetTCPConnection -LocalPort 2095).OwningProcess