Skip to content

Josh's IT-Blog

Information Technology, and other interesting things …

  • Home
  • About
  • Contact
    • Contact
    • Impressum
  • Links
  • Comic Strips

List VMTools Status with vCheck

Posted on 25. February 201328. June 2013 By Burkard Josh No Comments on List VMTools Status with vCheck
VMware

i like vCheck to daily report my virtual environment status. But a lot of our guest systems are not in my responsibility, so the VM Tools are not uptodate or aren’t installed.

i wroted this plugin for vCheck:

$Title = "VMs by VM Tools status"
$Header = "VMs by VM Tools status : $($VMToolsVersions.count)"
$Comments = "The following Operating Systems are in use in this vCenter."
$Display = "Table"
$Author = "Josh Burkard"
$Version = 1.0

# Start of Settings
# —- VM Guest OS Pivot Table —-

$VMTools = get-vm | % { get-view $_.ID } | select Name, @{ Name="hostName"; Expression={$_.guest.hostName}}, @{ Name="ToolsStatus"; Expression={$_.guest.toolsstatus}}, @{ Name="ToolsVersion"; Expression={$_.config.tools.toolsVersion}} | sort-object ToolsVersion

$VMToolsVersions = $VMTools | Where { $_.ToolsStatus -ne "toolsOk" } | sort ToolsVersion -desc

If (($VMToolsVersions | Measure-Object).count -gt 0 -or $ShowAllHeaders) 
{
	$MyReport += Get-CustomHeader "VMs by VM Tools status : $($VMToolsVersions.count)" "The following VM Tools Status are not OK or old."
	$MyReport += Get-HTMLTable $VMToolsVersions
	$MyReport += Get-CustomHeaderClose
}

Share this:

  • Facebook
  • Twitter
  • Email
  • Print
Tags: PowerShell VMware

Post navigation

❮ Previous Post: Proxy autoconfiguration with WPAD.dat and multiple network adapters
Next Post: add domain groups to vSphere ESXi 5 with PowerCLI ❯

Leave a Reply Cancel reply

About

Author Image
My name is Josh Burkard.
I'm a DevOps Engineer working with one of swiss largest telecom and full-service hosting provider. in my work I have a lot to do with Microsoft server operating systems, System Center, VMware, Microsoft Azure Cloud and other software.
On this site I will write some posts about different technology problems and their solutions.
please note also my tweets and retweets from this area.

Follow me on Twitter

My Tweets

Categories

  • General (13)
  • Hardware (9)
    • Network (8)
      • Cisco (2)
    • Storage (2)
  • Microsoft Azure (1)
    • Automation (1)
  • PowerShell (1)
  • Software (1)
    • Excel (1)
  • System Center (19)
    • SCCM (3)
    • SCDPM (1)
    • SCOM (13)
    • SCSM (1)
    • SMA (1)
  • VMware (8)
  • Windows 2008 R2 (10)
    • Active Directory (7)
  • Windows 2012 R2 (1)
  • Windows 2016 (1)
  • Windows 7 (4)
    • BitLocker (1)
  • WordPress (1)

Links

  • Burkard-Fingerlin Family
  • Swisscom (Schweiz) AG
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2022 Josh's IT-Blog.

Theme: Oceanly by ScriptsTown

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.