The code below works fine. I does exactly what I want it to do it searches thru files and sub-folders for the given IP string.
The issue is that i think it is to limited. Is there a way to change this script where it looks for any IP any Range? I can cut out 10.102. to only search that range. I would like it to find any IP and any subnet?
$RootString = "C:\Temp\"
$SearchString = "10.102.72.55"
$FileName = Get-ChildItem $RootString -recurse | Select-String -pattern $SearchString | group path | select name
$FileName | Out-GridView
$FileName | Out-file -width 300 -filepath "C:\Users\ltorres\Desktop\DataDumps_PS\pshellOutPut_ConfigVar.txt"