I'm looking for a script to find a text file on all of my network machines (I'm assuming PowerShell is the way to go here?). The tricky part is that the files can be located in hidden folders, different drives, and in multiple locations on each machine. I've scoured Google for an answer, but I'm only finding scripts that require a specific file path i.e. C:/folder/folder/file.txt. I have no knowledge of where or how many of these files are on each machine.
If that wasn't difficult enough, I then need to remove (permanently delete) the files from each machine. Aside from manually scanning a few hundred machines, I'm not sure how to go about this task. My initial thought was to create a batch script triggered by user login to find and remove the files on each PC. After researching, it looks like PowerShell is a viable solution, but I also...