Buy @ Amazon

Search and list files having text with Powershell script

Powershell scripting

is pretty powerful tool that is unfortunately under-utilized by many Windows users in their day-to-day work life. This post is focused on one such scenario of searching files based on search text.

Case 1: When you want to list files containing text "abc".

Case 2: When you want to list files containing any of texts "abc" OR "pqr" OR "xyz".

Case 3: When you want to list files containing all of texts "abc" AND "pqr" AND "xyz".

Hope it comes handy in your next file hunt..