VMware Cloud Community
gow75
Contributor
Contributor

Power shell script or batch file to show VMware tool version

I have a server farm of a couple hundred servers and i need to verify what version each server is running of Vmware tools on as this has become a possible issue with some apps that my company utilizes.  im kind of a noob to Power shell and need some steps on how to do this or help with batch file that sends teh request out to each server and outputs a .csv file or text of each server showing what version of tools is installed.

0 Kudos
2 Replies
cabraun
Enthusiast
Enthusiast

Get yourself a copy of RVTools from http://www.robware.net/ and you will be presented with information about the version of tools on your VMs and a lot more.  Don't forget to make a donation for this great "free" product.

0 Kudos
AndySimmons
Hot Shot
Hot Shot

Here's how you'd do it from PowerShell (requires PowerCLI)

$VCServer = "your.vcenter.server"
$CSVFile  = "C:\wherever\toolsreport.csv"
Connect-VIServer $VCServer
Get-VM | %{Get-View $_.Id} | select Name,@{n="ToolsVersion";e={$_.config.tools.toolsVersion}} | Export-Csv -NoTypeInformation -Path $CSVFile
-Andy VCAP5-DCA, VCP-DV 4/5, MCSE, space camp graduate.
0 Kudos