Find text in a file with PowerShell

I often need to search through logs to find errors and other troubleshooting information. In the Linux world, this often means using grep. In PowerShell, you can use Get-Content and Where-Object.

Find hidden files with PowerShell

I recently had a need to get a list of hidden files in a directory tree. PowerShell made it fairly easy to knock out the list in a quick and dirty fashion, by checking if the file Attributes contain the string “Hidden”: