CMD Master
Back to Blog
•Arnošt Havelka

Copy Files in PowerShell

Duplicate files using Copy-Item.

Start Interactive Lesson
Copy Files in PowerShell

The Copy-Item command duplicates files and directories. Learn to safely replicate your data.

Copying Files

Try the command

Copy a file!

Build the command
Copy-Item[source][destination]
Copy-Itemtest.txtbackup.txt
Terminal
PS C:\Users\Student>Copy-Item test.txt backup.txt

File Duplication

Terminal
original.txt
PS C:\Users\Student\Documents\CopyDemo>ls

Knowledge Check

1 / 1

What is the source parameter called?

References

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

Up Next

Move and Rename Files in PowerShell

Relocate and rename files using Move-Item.