powershell copy to remote server 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