grepping in windows

I came across this a long time ago, I don’t even remember where. Though I’m not such a huge fan of the powershell in general, it has served me well when I need it.

get-childitem c:windowssystem32 -include .txt -recurse | select-string -pattern “Microsoft” –casesensitive

man get-childitem and man select-string for more info on your options.