VMware Cloud Community
AntoineALZ
Contributor
Contributor
Jump to solution

PowerCLI - get ViewComposer parameters ?

Hello,

i need a way with PowerCLI to get 2 things about a VM :

     - the date of the last recompose 

     - the base image

I can get it from the horizon server :

pastedImage_1.png

(sorry it's in French).

I'm using the hv.helper module, and the connection to the server is OK.


I can get a VM, and display a lot of information :

$nomVM = ”W7-Bureau-42”

$vm = Get-View –viewtype VirtualMachine -filter @{“Name”=$nomVM}

$vm.config

but i'm unable to find what i need...

Does someone know where i can find that ?

Thank in advance !

1 Solution

Accepted Solutions
RoderikdeBlock
Enthusiast
Enthusiast
Jump to solution

pastedImage_0.png

You can try this!

Roderik de Block


Blog: https://roderikdeblock.com

View solution in original post

2 Replies
RoderikdeBlock
Enthusiast
Enthusiast
Jump to solution

pastedImage_0.png

You can try this!

Roderik de Block


Blog: https://roderikdeblock.com
AntoineALZ
Contributor
Contributor
Jump to solution

Wow, that's so simple i'm ashamed to lost so many time on it...

juste modified few things, and it's perfect :

$nomVM = ”W7-Bureau-09”

$VM = Get-hvMachine -machinename $nomVM

$vm.ManagedMachineData.ViewComposerData

And in the ViewComposerData, i have exactly i want :

search.jpg

Thank you very much ! Smiley Happy