VMware: Upload local files to datastore with PowerCLI
I’m upgrading some hosts in my lab with vSphere 5 patch 1, I need to upload the zip packages from my laptop to my datastore.. it would be nice to do this via PowerCLI
The code:
$DataStore = Get-VMHost esx02.vmpros.lan | Get-Datastore ESX02_VMFS01 Copy-DatastoreItem C:\vmpros\patch1\ $DataStore.DatastoreBrowserPath -Recurse
Result:
Thanks, good article