$files = Get-ChildItem -File foreach ($file in $files) { $newName = $file.Name -replace "\(\d+\)", "" Rename-Item -Path $file.FullName -NewName $newName }