Skip to content

Upgrade VMware Tools

#Export the CVS from the flash client 6.5.

#Save your ExportList.csv.

Import-Csv ExportList.csv |

foreach {

#Pulls  the var from the CSV

#”guestToolsUnmanaged|10304″ is a test value I want to avoid upgrading.
$strNewVMName = $_. “Name”
$toolsVersion = $_. “VMware Tools Version Status”

if( $toolsVersion -ne “guestToolsUnmanaged|10304” ){echo “requires upgrade” + $strNewVMName

  #Update VMtools without reboot
    Get-VM $strNewVMName | Update-Tools –NoReboot
      write-host “Updated $strNewVMName —— ” }

else

{echo “does not require upgrade” + $strNewVMName}

}

 

 

Categories

Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: