VMware Cloud Community
red888
Contributor
Contributor
Jump to solution

How can I get the VMware view agent version of VMs with powercli?

How can I get the VMware View Agent version running on a VM with powercli or View Powercli?

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Afaik there is no PowerCLI cmdlet for that, but you can use the Invoke-VMScript cmdlet and query the Win32_Product class.

By running the following. You can add a Where-clause to only return the View Agent

Get-WmiObject -Class Win32_Product | Select Name,Version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Afaik there is no PowerCLI cmdlet for that, but you can use the Invoke-VMScript cmdlet and query the Win32_Product class.

By running the following. You can add a Where-clause to only return the View Agent

Get-WmiObject -Class Win32_Product | Select Name,Version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
red888
Contributor
Contributor
Jump to solution

Wow does that stink. Is that how the Horizon console grabs it too? So weird they didn't include that!

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

No, I don't think the View Admin console retrieves it that way.

The admin console communicates with the agent, and it's through that communication it gets the version.

But afaik, that is not a public API.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference