Powershell - search through a file with multiple searches and remove matches in the file : I have a text file containing a single column of IMEI's (file1.txt).  I have a second file containing a single column of IMEI's (file2.txt).

What I'm trying to do is take each IMEI in file2.txt and search through file1.txt locating any matches and then when it finds a match, remove that line in file1.txt.

What's making it difficult is the multiple searches I need to perform at once.  Doing each one at a time would take quite a while as there are hundreds of IMEI's in each file.

Does anyone have any suggestions to accomplish this task?

Thanks!