Gettcpconnection結果を一定時間出力する方法
Q&A
Closed
解決したいこと
forやwhile文で対応すると同じ処理がループする為、一定時間ログを
出力させたい
for,WhhileでのGettcpconnection powershell
LocalAddress LocalPort RemoteAddress RemotePort State AppliedSetting
------------ --------- ------------- ---------- ----- --------------
192.168.0.1 80 192.168.0.1 80 Bound Internet
↓roop中
LocalAddress LocalPort RemoteAddress RemotePort State AppliedSetting
------------ --------- ------------- ---------- ----- --------------
192.168.0.1 80 192.168.0.1 80 Bound Internet
↓roop中
LocalAddress LocalPort RemoteAddress RemotePort State AppliedSetting
------------ --------- ------------- ---------- ----- --------------
192.168.0.1 80 192.168.0.1 80 Bound Internet
例えばnetstat -p tcpを実施した場合、Ctrl+Cをしないと継続してログを出力
しますが、同様の処理をGettcpconnectionで実現したいです。
Get-NetTCPConnection | memberで同様の処理ができるMethodがあるか探して見ましたが
特にそういった出力を可能するものはなく、ご教授いただければ幸いです。
0 likes