•Arnošt Havelka
Copy Files in PowerShell
Duplicate files using Copy-Item.
Start Interactive LessonThe 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 / 1What 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.