I recently answered a post on ServerFault about finding the View Agent version.

After Googling for about an hour, I dug into the VMware documentation to see what available via the VMware.View.Broker cmdlets and vdadmin.exe. After looking it over, it appeared this information was only available, surprisingly, via vdadmin.

In order to use vdadmin – you will need to run it on your connection server. The executable is available in

1
\Program Files\VMware\VMware View\Server\tools\bin>
.

I wrote a small Powershell script to take all your pools and run it through vdmadmin to check the agent versions then output to a file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<#	
	.NOTES
	===========================================================================
	 Created on:   	4/1/2016 1:57 PM
	 Created by:   	Cole Lavallee 
	 Filename:     	Get-ViewAgentVersions.ps1
	===========================================================================
	.DESCRIPTION
		Gets VMware View Agent Versions of all Desktops in your View Environment.
#>
#####You will need to run this locally from your Connections server. Copy to a directory C:\Scripts
### Enter-PSSession ConnectionServer
### .\Get-ViewAgentVersions.ps1


Add-PSSnapin VMware.View.Broker

$log = "C:\poolversions.txt"

$vdmadminpath = "D:\Program Files\VMware\VMware View\Server\tools\bin\"

cd $vdmadminpath
$viewpools = Get-Pool | %{ $_.pool_id }


foreach ($viewpool in $viewpools)
{
	Write-host "Writing output to $log"
	& ".\vdmadmin.exe" "-A" "-d" $viewpool "-getversion" 2>$null | out-file $log -Append 
}

Not the most elegant solution, however it’ll get you the information you need.