Hi all -
I'm using PowerCLi 6.5.
I created a function that uses get-view to report a lot of info about our VM templates (e.g., name, description, filename, datastores, vm folder, version, CPU, memory, network, guest info, etc etc etc) but can't find the vmhost name on which the template currently resides (and then the vmhost cluster).
$TemplateView = Get-View -ViewType VirtualMachine -Filter @{'Name'="mytemplate"}
I have gone through all the available properties recursively to try & see what I can get, but vmhost doesn't seem to be among them. I can see the vmhost in the web client, so I know it knows it has one!
I also see this, but can't figure out how to do anything with it (I'm still a bit fuzzy on how to use managedobjectreferences):
$Templateview.summary.vm
Type Value
---- -----
VirtualMachine vm-1942
Hep?
Thanks,
Paula
PS: Also, I can't figure out how to insert code blocks in here...some guidance there would be nice too :smileywink: