Rename-Item
noun
say it: “ree-NAYM EYE-tum” /riˈneɪm ˈaɪtəm/
A PowerShell command that gives a file or folder a new name and leaves it in the same folder.
What does Rename-Item do?
Rename-Item gives a file or folder a new name and leaves it where it is. The new name is only a name: to rename and move at once, use Move-Item. Quote a name with spaces, and keep the extension, such as .pdf, so the file still opens.
Rename-Item 'class-schedule (1).pdf' class-schedule-old.pdf
In a sentence
- “Sam used Rename-Item to turn class-schedule (1).pdf into class-schedule-old.pdf.”
- “The new name for Rename-Item is only a name, not a path to another folder.”
Level: Novice · More PowerShell terms at this level
Updated