Powercli to check for VMs needing VMTools upgrade

      14 Comments on Powercli to check for VMs needing VMTools upgrade

VMTools…
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

14 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

    Reply
  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.

    Reply
  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
    sharing.

    Reply
  4. elinaz

    Great beat ! I wish to apprentice whilst
    you amend your web site, how could i subscribe for a weblog website?
    The account aided me a appropriate deal. I have been a little bit familiar of this your broadcast
    offered vibrant transparent idea.

    Reply
  5. christel

    It’s not my first time to pay a quick visit this website,
    i am browsing this website dailly and take good facts
    from here daily.

    Reply
  6. adolf

    Your style is unique in comparison to other folks I’ve read stuff from.
    Thank you for posting when you’ve got the opportunity, Guess I will just bookmark this web site.

    Reply
  7. http://www.shhengtian.com/

    you’re truly a excellent webmaster. The web site loading pace is incredible.
    It kind of feels that you are doing any unique trick.
    Also, The contents are masterpiece. you’ve performed
    a magnificent process in this matter!

    Reply
  8. Data Protection

    Thanks for any other wonderful article. Where else could anybody get
    that kind of info in such a perfect means of writing?
    I have a presentation next week, and I am on the search for such info.

    Reply
  9. erickayencken

    I feel that is among the such a lot significant information for me.
    And i’m glad studying your article. However should observation on few basic things, The website style is great, the articles is in reality excellent : D.
    Excellent task, cheers

    Reply
  10. Anonymous

    I read this post completely regarding the comparison of hottest and previous technologies, it’s
    awesome article.

    Reply
  11. wilbur.mcgahey

    I was very happy to uncover this site. I need to to thank you for ones time for this fantastic read!!
    I definitely appreciated every bit of it and i also have you saved to
    fav to see new stuff in your web site.

    Reply

Leave a Reply

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