Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 228891

Re: Copy-DatastoreItem template vm folder between virtual centers

$
0
0

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


Viewing all articles
Browse latest Browse all 228891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>