运行效果:
实现代码:
Get-NetTCPConnection -State Established| select LocalAddress,LocalPort,RemoteAddress,RemotePort,@{ ` name="ProcessName";e={(ps -Id $_.OwningProcess).Name}},CreationTime|Format-Table
运行效果:
实现代码:
Get-NetTCPConnection -State Established| select LocalAddress,LocalPort,RemoteAddress,RemotePort,@{ ` name="ProcessName";e={(ps -Id $_.OwningProcess).Name}},CreationTime|Format-Table