PowerTip: Use PowerShell Out-GridView with NetStat

PowerTip: Use PowerShell Out-GridView with NetStat

  • Comments 3
  • Likes

Summary: Learn to use Windows PowerShell Out-GridView to filter NetStat output.

Hey, Scripting Guy! Question How can I use NetStat to check TCP port connections, and additionally have a graphical tool to filter the output?

Hey, Scripting Guy! Answer Use the NetStat command inside Windows PowerShell, and pipe the results to the Out-GridView cmdlet. Then use the Filter parameter to filter the output:

netstat -a | Out-GridView

The Out-GridView control is shown here.

Image of menu

 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • View nice, thanks guys. I'll be sharing this amongst my team.

  • @Dominic Hyland Awesome! I love the feedback. Glad you like it.

  • Is there a way to loop this and update the contents of the gridview? When i put this in a loop, it creates a new gridview each time.