I'm trying to find all temp folders on my system without having files and folders with the word template included in my list. I'm not sure how to get just "*temp*" without also getting "*templat*".
My original statement was:
get-childitem -recurse -ErrorAction ignore | where fullname -like "*temp*" | select -ExpandProperty fullName |
fl |
Any advice on how I can get my results to just display files and folders with the word "temp" anywhere in the fullname without also including files and folders that have the string "templat" in the full name?