I would like to have a powershell script which runs at "Hosts & Clusters" level.
What the script should do:
Install VMware Tools whitout reboot on VMs which have "OldTools" or "Tools not Installed"
I found the following script in another forum, but that didnt work for me:
$insParm = '/s /v"/qn /norestart"'
$updList = get-cluster -name "My_Cluster_name"|get-vm | where-object {$_.powerstate -eq "PoweredON"} | % {get-view $_.ID} |where {$_.guest.toolsstatus -match "toolsOld" } | where {$_.guest.guestfamily -match "windowsGuest"}
{
$uVM.name
$uVM.UpgradeTools_Task($insParm)
Any help would be appreciated
Best Regards
Simon Ciglia