Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell - Deleting multiple files that contain a specific phrase.

$
0
0

Hi all,

Can anyone show me an example of how to remove multiple files that contain the same phrase.

I would like to search through each text file in the folder C:\temp\PS  for the following phrase ""Not a valid request while running in standby mode." and if this phrase exists delete the text file(s).

 Any and all help is appreciated. Thank you in advance.

Gaz


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>