When you know scripting you also gain another extraordinary power which is laziness LOL. I am one of those lazy Admin’s who know Powershell and try to do everything using Powershell.
The Multi Copy script basically i got a set of files and folder location that need moving to different machines, servers and NAS. i was so lazy to move stuff that way (talking about 300 odd) so wrote the bad boy down.
$computers = get-content -path "machines name list"
$source = read-host "Please type the Path and file name to Copy?"
$destination = "destination location"
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"
}
}
