CMD Master
Back to Blog
•Arnošt Havelka

Move and Rename Files in PowerShell

Relocate and rename files using Move-Item.

Start Interactive Lesson
Move and Rename Files in PowerShell

The Move-Item command relocates and renames files. Master this versatile operation.

Moving and Renaming

Try the command

Move or rename a file!

Build the command
Move-Item[source][destination]
Move-Itemold.txtnew.txt
Terminal
PS C:\Users\Student>Move-Item old.txt new.txt

Relocation Examples

Terminal
projects archive.txt
PS C:\Users\Student\Documents\MoveDemo>ls

Knowledge Check

1 / 1

Can Move-Item rename files?

References

These documentation links provide authoritative details for the commands used in this article.

Up Next

Delete Files in PowerShell

Safely remove files using Remove-Item.