the code below can be used to replace characters in a file and rename it.

Get-ChildItem -Recurse -Filter * | Rename-Item -NewName { $_.Name -replace "_", "-" }

Leave a Reply