Recursive file search using PowerShell

Sometimes you may want to search a filename in a particular location and get the file path. You can use Get-ChildItem cmdlet with -Recurse and -Filter options to recursively search a file name in a particular directory location. Here is an example for your reference –

Leave a Reply