I know very little about Powershell but am trying to use it to determine if specific text strings exist within specific excel files.
This works, it returns the correctly named files: (I am looking for files that will have 4 digits followed by a specific Letter, followed by at least one digit, followed by various text. they will all be some type of excel file (xls, xlsx, xlsm, etc.)
Get-ChildItem E:\RESULTS -recurse | Where-Object {$_.Name -match "\d\d\d\dL\d.*xl.*"}
When I pipe the specific text string in that I want to find within the excel files, nothing is returned.
Get-ChildItem E:\RESULTS -recurse | Where-Object {$_.Name -match "\d\d\d\dL\d.*xl.*"} | Select-String -Pattern "2700-499" -AllMatches -SimpleMatch
Once I get a list of the specific files containing the specific text I want to save that to a text file.
I'm stuck at this point, any help will be appreciated!