Use the Get-ChildItem cmdlet with the -Recurse
switch:
Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse -ErrorAction SilentlyContinue -Force
More Related Contents:
- What’s the best way to determine the location of the current PowerShell script?
- Is there a way to make a PowerShell script work by double clicking a .ps1 file?
- Save hash table in PowerShell object notation (PSON)
- When should I use Write-Error vs. Throw? Terminating vs. non-terminating errors
- How to get disk capacity and free space of remote computer
- How do I write to standard error in PowerShell?
- Executing an EXE file using a PowerShell script
- How to get an MD5 checksum in PowerShell
- How do I get only directories using Get-ChildItem?
- Web.Config transforms outside of Microsoft MSBuild?
- How to properly -filter multiple strings in a PowerShell copy script
- copy-item With Alternate Credentials
- PowerShell – Decode System.Security.SecureString to readable password
- How do I concatenate two text files in PowerShell?
- How do I include a locally defined function when using PowerShell’s Invoke-Command for remoting?
- Extract the filename from a path
- How to export data to CSV in PowerShell?
- Methods to hex edit binary files via Powershell
- Comparing array variables in PowerShell
- How to speed up Powershell Get-Childitem over UNC
- Powershell script to see currently logged in users (domain and machine) + status (active, idle, away)
- Using Invoke-Command -ScriptBlock on a function with arguments
- PowerShell script to check the status of a URL
- Gracefully stopping in Powershell
- Powershell – Reboot and Continue Script
- Hashtables and key order
- Can’t install nuget package because of “Failed to initialize the PowerShell host”
- What security setting is preventing Remote PowerShell 2.0 from accessing UNC paths
- List hidden sub-directories and sizes
- Prevent trailing newline in PowerShell Out-File command