PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
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