About 227,000 results
Open links in new tab
  1. Select-String (Microsoft.PowerShell.Utility) - PowerShell

    You can direct Select-String to find multiple matches per line, display text before and after the match, or display a Boolean value (True or False) that indicates whether a match is found. Select-String can …

  2. Select-String - PowerShell - SS64.com

    When you pipe more than one string to the Select-String cmdlet, it searches for the specified text in each string and returns each string that contains the search text.

  3. Find Text Patterns with PowerShell Select-String

    Mar 4, 2025 · Select-String is a PowerShell cmdlet that uses regular expression matching to search for text patterns in input strings and files. It’s essentially PowerShell’s equivalent of the Unix grep …

  4. 10 Powerful PowerShell Select-String Examples - SPGuides

    Jun 24, 2025 · In this tutorial, I have shown 10 real examples of the PowerShell Select-String cmdlet. I encourage you to experiment with these examples in your own environment.

  5. PowerShell: Use Select-String and Exclude Specific Pattern

    May 7, 2024 · This tutorial explains how to use the Select-String cmdlet in PowerShell and exclude a specific string, including an example.

  6. PowerShell Select-String in Context: Lines Before & After Match

    Aug 27, 2025 · To show lines before and/or after a match, use the Select-String command with the -Context parameter. This lets you display a number of lines before, after, or both around the matching …

  7. Select-String - PowerShell Command | PDQ

    Learn how to use the Microsoft PowerShell command Select-String. PDQ breaks down uses of Select-String with parameters and helpful examples.

  8. How to Use the Command 'Select-String' (with examples)

    Dec 17, 2024 · The Select-String cmdlet in PowerShell proves to be a versatile and robust tool for searching text within files and streams. From simple string matching to contextual searches, Select …

  9. powershell-select-string

    Powershell Select String See without the CaseSensitive parameter, Select-String would recognize both of the strings as matches.

  10. PowerShell - How to use Select-String to search files for a pattern

    Aug 24, 2021 · In this article, I’ll show how to use the Select-String PowerShell command to search files in a directory with a regex pattern. I’ll first explain the basic syntax, and then I’ll show a few common …