I need a powershell script that will move files from a local server to a UNC based on text within the file.
I have failed request trace log files being written to the servers local hard drive. I need only files that contain a certain URL path listed in the file moved to a UNC. All other files that do not contain this specific text(path) to remain on the servers local hard drive. So let's say I want to move files that contain "*/website_folder/*" in the file where "*" are wildcard characters.
The script should be written in powershell not vbscript. The script should be configurable so that the script can be pointed to a specific folder to scan and a specific folder (UNC) to move files too.