•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 -Path [source] -Destination [dest]
Terminal
C:\Users\User>Copy-Item -Path test.txt -Destination backup.txt
File Duplication
Command Prompt
original.txt
C:\Users\User>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.