I am searching for a file in all the folders.
Copyforbuild.bat is available in many places, and I would like to search recursively.
Copyforbuild.bat
$Fil
When searching folders where you might get an error based on security (e.g. C:\Users), use the following command:
C:\Users
Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse -ErrorAction SilentlyContinue -Force