Get VMtools with PowerCLI 5.5 R2
July 14, 2014VMtools is one of those nagging little pieces of software that always seems to be a pain to update. Back in my System Administration days, I commonly needed to report on which VMs had different versions of VMtools, and I have to admit, this was a more difficult property to find from my PowerCLI toolkit.
Take a look at the old way of finding my VMtools versions through PowerCLI.
[code language=powershell]
get-view -viewtype virtualmachine | select Name, @{ Name=ToolsVersion”; Expression={$_.config.tools.toolsversion}} | FT -autosize
[/code]
Whew! That’s a pretty intricate command just to find the VMtools version, if I do say so.
So, when I saw that PowerCLI 5.5 R2 was released and had a new vmguest property for VMtools I wanted to give a big shout out to Alan Renouf and the PowerCLI team over at VMware. This was a long time coming.
Check out the new property that is available in vmguest.
Now, we can run the command below to find our VMtools version, and this one is MUCH easier to remember.
[code language=powershell]
get-vm | get-vmguest | select VMName, ToolsVersion | FT -autosize
[/code]
If you haven’t upgraded to PowerCLI 5.5 R2 you can grab the download here, and be sure to get Alan Renouf a shout for his team’s work on the new code.
[…] VMTools with PowerCLI 5.5 R2 This is a quick article about how you had to jump through hoops in PowerCLI 5.5 to get the VMware Tools info, and yet in R2 […]
[…] 3. Get VM ToolsVersion – […]
[…] Get VM ToolsVersion – […]
Is it possible to pull the long version (9.4.5) via Get-View instead of the 4 digit version? I wasn’t able to find it but would prefer to use Get-View to pull is due to the size of our environment.
what if i just want to know whether the vmware tools are installed or not?
You could try something like this:
Get-VM | Select Name,
@{N=”Tools status”;E={$_.Guest.State}},
@{N=”Tools version”;E={$_.Extensiondata.Config.Tools.ToolsVersion}}
You wrote the incorrect command in the blog post but not in the screenshot. You added a S to ToolVersion
Thanks. Fixed.
Great article!! PowerCLI rocks!
You can also check VMTools version from ESXi ssh or console searching logs:
grep toolbox /vmfs/volumes/DATASTORE1/AV1/vmware.log |grep “Version:”
DATASTORE1 = Datastore Name
AV1 = Virtual machine name
Extracted from: http://www.sysadmit.com/2016/07/como-saber-la-version-de-vmware-tools.html