I'm trying to clone some Virtual Machines using POWERCLI, but when I set the target location I'll have the error "Could not find Folder with name" ...
My folder estructure is like: DC1\destfolder DC2\destfolder
Where destination folder name is the same on each DCenter.
I'm using the following command New-VM -Name $VMdest -VM $VMorig -VMHost $ESXhost -Datastore $ds -Location $destFolder -DiskStorageFormat thin -RunAsync
On $destfolder variable I've set providing full path, like "dc1\destfolder" or "dc1\vm\destfolder" but in both cases I allways have the error "Could not find Folder"
I've also tried to use the Folder ID, but "location" parameter doesn't recognize it because it uses the name.
Any Idea?
Regards