powershell copy folder to remote computer
# The following array contains the destination servers
$computers = @("SRV1","SRV2","SRV3")
# This is the file/folder(s) you want to copy to the servers in the $computer variable
$source = "C:\Software\EMC\Networker\NWVSS.exe"
# The destination location you want the file/folder(s) to be copied to
$destination = "C$\temp\"
foreach ($computer in $computers) {
if ((Test-Path -Path \\$computer\$destination)) {
Copy-Item $source -Destination \\$computer\$destination -Recurse
} else {
"\\$computer\$destination is not reachable or does not exist"
}
}