| 用途 | 时点连接全景 |
|---|---|
| 命令 | netstat -anob / Get-NetTCPConnection |
快照
快照
netstat -anob > netstat-snapshot.txt 2>$null
Get-NetTCPConnection -State Established | Select LocalAddress, LocalPort, RemoteAddress, RemotePort, OwningProcess | Sort RemoteAddress快照文件与时间、主机名、操作用户一起登记入卷。