VmTemplate_List error
Hi, I'm trying to retrieve vmtemplateid to pass to SetHVPool cmdlet; I use the following code:
$vCenterID=$(Get-HVvCenterServer).id $vTemplateSvc= New-Object VMware-Hv.VmTemplateService $vTemplateList= $vTemplateSvc.VmTemplate_List($vCenterID)
I receive the follow error:
Cannot find an overload for "vmTemplate_List" and the argument count: "1"
Could you help, please?
Thanks
Hi,
Please change the script to: $vTemplateSvc= New-Object VMware.Hv.VmTemplateService $vTemplateList= $vTemplateSvc.VmTemplate_List($hvServices, $vCenterID)
Hi,
Please change the script to: $vTemplateSvc= New-Object VMware.Hv.VmTemplateService $vTemplateList= $vTemplateSvc.VmTemplate_List($hvServices, $vCenterID)
A question: which value for $hvServices?