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
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
Ahaa, its pleasant dialogue regarding this post at this place at this blog, I have read all that, so at this time me also commenting at this place. http://www.yahoo.net
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.
Recoge y detalla muy bien lo que nos espera para los próximos meses.
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.