hi
thanks. I now have a task where the template folder needs to be copied and registered on all the remote sites
I have a csv file that is like
Name,Datastore,Datacenter
esx1,lun1,dc1
esx2,lun2,dc2
the command I use is
Import-Csv "c:\remoteoffice_esx.csv" -UseCulture | %{
ForEach ($Name in $_.Name){
copy-datastoreItem c:\PS\* vmstore:\$_.Datacenter\$_.Datastore -Force
}
}
but it is not working
Copy-DatastoreItem : This operation is supported only on datastore item objects. The specified path