Find String in any File in Folder with PowerShell

Version 2

    We had a scenario where we had to find errors in the config files.  We knew exactly what the errored string was, but there were 138 config files to verify in the folder structure.  One line of code and 5 minutes later...we had all the files that contained the incorrect URi.

     

    I heart powershell.

    See Also

    PowerShell Event Logger

    Zipping Files With Powershell

    Simple text logger for Powershell

    Check Multiple Nodes for a Running Service, Then Show up or Down based on the number of Servers Running the Service