Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Using the Rename-Item Cmdlet

Renaming a File or Folder

What can you do with the Rename-Item cmdlet? Well, one thing you can do is rename files or folders; all you have to do is call Rename-Item followed by two parameters:

  • The current path for the file or folder.

  • The new name for the file or folder.

For example, this command renames the file C:\Scripts\Test.txt to C:\Scripts\New_Name.txt:

Rename-Item c:\scripts\test.txt new_name.txt

Rename-Item Aliases
  • rni

  • ren

Related Links

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft