PowerShell: How do I recursively rename files in a folder

This is a great example of PowerShell goodness - an awesome one liner.

Get-ChildItem -File -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace("<FindValue>","<NewValue>")}

Comments

Popular posts from this blog

SharePoint 2013: Error updating managed account credentials

Error deploying Nintex workflow: An item with the same key has already been added