# Renaming: Rename-Item

Rename-Item gives a file or folder a new name in the folder it's already in; the new name is only a name, so renaming and moving in one step is Move-Item's job, and Rename-Item never replaces a file that already has the new name.

![Cheat sheet for the lesson Renaming: Rename-Item: Rename-Item gives a file or folder a new name in the folder it's already in; the new name is only a name, so renaming and moving in one step is Move-Item's job, and Rename-Item never replaces a file that already has the new name.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/4687251f54e84c2ca57cca4d2aab0338.webp)

- Category: PowerShell
- Level: Novice
- Tags: File Extension, move-item, operating-system, powershell, rename-item
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-rename-item-cheat-sheet
