eabeukes thanks for the link. However when I try to run the script via Vsphere tool kit I get the following error: Please note I am not a coder so could have made an errror somewhere. I have called a host rather than the cluster at present.
You cannot call a method on a null-valued expression.
At line:4 char:23
+ $uVM.UpgradeTools_Task( <<<< $insParm)
My script is as follows:
$cluster = 'sh177edt.scotland.gov.uk'
$insParm = '/s /v"/qn /norestart"'
$updList = get-vmhost -Name $cluster | get-vm | where-object {$_.powerstate -eq "PoweredON"} | foreach-object { get-view $_.ID } | where { $_.guest.toolsstatus -match "toolsOld" }
foreach ($uVM in $updList)
{
$uVM.name
$uVM.UpgradeTools_Task($in
#Wait 30 seconds before starting another update task
Start-sleep -s 30
}
Main Topics
Browse All Topics





by: eabeukesPosted on 2009-08-11 at 05:11:16ID: 25068056
Take a look at: http://www.mycloudcake.com /vmware/in stall-vmwa re-tools-n o- immediat e-reboot/
You will still need a reboot at some stage for the new drivers to kick in though.