Let's consider two files file1.txt and file2.txt, to concatenate two files using PowerShell, use the below command type file1.txt file2.txt > resultfile.txt above command concatenate file1.txt and file2.txt into resultfile.txt file.