powershell command to copy file to remote computer code example
Example 1: powershell copy file to remote computer
Copy-Item -Path \\serverb\c$\programs\temp\test.txt -Destination \\servera\c$\programs\temp\test.txt;
Example 2: powershell copy file to remote server
scp filename hostname