Powercli to check for VMs needing VMTools upgrade

      5 Comments on Powercli to check for VMs needing VMTools upgrade

When we have a few VMs it is fairly easy to keep track and keep tools updated, but how about when we have thousands of VMs?
Well in this case we call Powercli to the rescue 🙂

Simple query will to the job, you can also format it and export to CSV
The below example assumes you only have one datacenter, if you have more then just do
(Get-Datacenter 'DatacenterName').id
or if you want to restrict it to a cluster then do
(Get-Cluster 'ClusterName').id
you catch my drift, sky is the limit!

get-view -ViewType virtualmachine -SearchRoot (Get-Datacenter).id -Filter @{'Summary.Guest.ToolsVersionStatus'='guestToolsNeedUpgrade'} | Select Name, {$_.Config.Tools.ToolsVersion}, {$_.Summary.Guest.ToolsVersionStatus}

To CSV: just add to the end of the initial code

 | Export-Csv .\FileName.csv -NoTypeInformation

5 thoughts on “Powercli to check for VMs needing VMTools upgrade

  1. Jane

    Woah! I’m really loving the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance”
    between superb usability and visual appeal. I must say you have
    done a amazing job with this. Additionally, the blog loads
    super fast for me on Internet explorer. Superb
    Blog! http://bing.co.uk

  2. renato-usatyi-novosti.com

    I have recently started a web site, the information you offer on this
    site has helped me greatly. Thank you for all of your time & work.

  3. LucyPSagar

    It is truly a nice and helpful piece of information. I’m happy that you just shared this helpful info with us.
    Please stay us informed this way. Thanks a lot for


Leave a Reply

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