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 -Path [source] -Destination [dest]
Move/rename to new location or name
Terminal
C:\Users\User>Move-Item -Path [source] -Destination [dest]

Relocation Examples

Command Prompt
archive.txt projects (folder)
C:\Users\User>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.