VMware Cloud Community
VCPGuru
Contributor
Contributor

Update VMware Tools whitout reboot (Powershell)

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
Tags (2)
Reply
0 Kudos
1 Reply
dmn0211
Enthusiast
Enthusiast

Check out this information.

Also the update-tools cmdlet might prove useful.

http://communities.vmware.com/thread/151936

Also check