I have another issue just whipping me. I borrowed the following code (I can't recall from where) that looked super promising for determining phone numbers present in all files in a file share. The code absolutely makes sense to me, and that is why I am confused why it is not working. I test it with a document that I created in which I placed a phone number. It returned nothing. Any help would be greatly appreciated.
foreach ($file in Get-ChildItem -Recurse | Select-String -pattern '^\d{3}-\d{3}-\d{4}' | Select-Object -Unique Path) {$file.path}