any idea how I can copy a local folder to multiple remote local ds?
I got the commands
$datastores = get-vmhost host1, host2, host3 | get-datastore -name local*
foreach ($ds in $datastores) {
new-datastoredrive -name test -datastore $ds
copy-datastoreitem -item "c:\script\sub -destination test: -REcurse
write-output "yes" | plink $plink $vmhost "root" "xxxxx" "mv /vmfs/volumes/$ds/sub /tmp"
}
any idea?