Use Select-String with Context in PowerShell

by Sep 14, 2012

Select-String can find lines with a specific keyword. It can also include context-relevant lines before and after that line. This will filter the result from ipconfig to focus on your network adapter parameters only:

ipconfig | Select-String LAN -context 0,6

Twitter This Tip! ReTweet this Tip!