Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 4
    So what have you tried? We are not a PowerShell script writing service Commented Oct 18, 2025 at 22:12
  • I tried using this command but i cannot seem to modify it to my requirement, $counter = 01 Get-ChildItem *.mkv | ForEach-Object {$newName = "S01E$counter" + $_.Extension Rename-Item $_.FullName -NewName $newName $counter++} Commented Oct 18, 2025 at 22:22
  • 2
    Are you just trying to remove episode from the name? Commented Oct 19, 2025 at 0:24
  • Hop over and ask stackoverflow.ai as it has suggestions too. Commented Oct 19, 2025 at 18:29