Skip to content

VirtuallyThatGuy

Anything VMware , PowerCLI, PowerShell, Automation and some Windows

Menu
  • Home
  • PowerCLI
  • VMware
  • Automation
  • Windows
  • About
Menu

How to check vmtools version and status using PowerCLI Script – VirtuallyThatGuy

Posted on April 26, 2021December 19, 2025 by VirtuallyThatGuy

Ever wondered a quicker way to check the vmtools versions and their status in your estate? Well here you go my friend.

 

#​​ VMtools Version and Status

 

# Load the ViProperty

 

New-VIProperty​​ -Name​​ ToolsVersion​​ -ObjectType​​ VirtualMachine​​ `

 -ValueFromExtensionProperty​​ ‘config.tools.ToolsVersion’​​ `

 -Force

 

New-VIProperty​​ -Name​​ ToolsVersionStatus​​ -ObjectType​​ VirtualMachine​​ -Value​​ {

param($vm)

$vm.ExtensionData.Guest.ToolsVersionStatus

}​​ -Force

 

# Run below command​​ 

 

get-vm​​ |​​ select​​ -property​​ @{N="Name"; E={$_.name}},​​ ToolsVersion,ToolsVersionStatus​​ ,​​ @{N="Cluster";E={Get-Cluster​​ -vm​​ $_}},​​ @{N="vCenter";e={(($_.Uid).split("@")[1]).split(":")[0]}}​​ |​​ ft​​ -a

 

​​ 

 

# VMtools Version and Status

# Load the ViProperty

New-VIProperty -Name ToolsVersion -ObjectType VirtualMachine `
	-ValueFromExtensionProperty ‘config.tools.ToolsVersion’ `
	-Force

New-VIProperty -Name ToolsVersionStatus -ObjectType VirtualMachine -Value {
param($vm)
$vm.ExtensionData.Guest.ToolsVersionStatus
} -Force

# Run below command 

get-vm | select -property @{N="Name"; E={$_.name}}, ToolsVersion,ToolsVersionStatus , @{N="Cluster";E={Get-Cluster -vm $_}}, @{N="vCenter";e={(($_.Uid).split("@")[1]).split(":")[0]}} | ft -a

3 thoughts on “How to check vmtools version and status using PowerCLI Script – VirtuallyThatGuy”

  1. Carlos says:
    January 12, 2022 at 1:00 pm

    Puedes indicar un script q me diga cuáles están lista para el update de las vmtools y darle la orden de q se actualicen sin el reinicio…tanto para Windows como Linux, la idea es tener las VMS actualizadas…y q guarde un log

    Reply
  2. Carlos says:
    January 12, 2022 at 5:11 pm

    you can indicate by script to perform a massive update of the vmtools under windows and linux without restarting the vms

    Reply
    1. VirtuallyThatGuy says:
      January 12, 2022 at 8:41 pm

      I have previously posted what you’re looking for. https://virtuallythatguy.co.uk/automate-vmtools-upgrade-for-bulk-vm-list-using-powercli/ check it out.

      Reply

Leave a Reply to VirtuallyThatGuy Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • vROps: Management Pack Troubleshooting
  • Windows AD {Active Directory} (PowerShell) samples
  • Migrate VMs Between vCentres Using Powershell or PowerCLI
  • Set VM Tools to Update Automatically on VM Reboot using powershell
  • Windows Administrator Must Have Powershell Commands

Recent Comments

  • JB on Script: How to get VM with Tag Assignment and export results to csv using PowerCLI or Powershell
  • DL on How to change VCSA root password and bypass BAD PASSWORD: it is based on a dictionary word for vCenter VCSA root account warning
  • 360coolp on How to change VCSA root password and bypass BAD PASSWORD: it is based on a dictionary word for vCenter VCSA root account warning
  • Yogesh on ESXi 8.x, 7.x, 6.x Service sfcbd-watchdog Not Running / Fails to Start – VirtuallyThatGuy
  • VirtuallyThatGuy on ESXi 8.x, 7.x, 6.x Service sfcbd-watchdog Not Running / Fails to Start – VirtuallyThatGuy

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017

Categories

  • Automation
  • PowerCLI
  • VMware
  • Windows
© 2026 VirtuallyThatGuy | Powered by Superbs Personal Blog theme