VMware Cloud Community
vmk2014
Expert
Expert

VMware tools upgrade with no-reboot

Hi All,

Can we do VMware tools upgrade for a specific list of VM's without re-boot through power cli automation? Since we are finding a difficult time to get downtime from customer.

E.g. C:\Temp\vmlist

Get-VM cwv-gasmngr1 | Update-Tools –NoReboot -RunAsync

thanks

vmk

Tags (1)
0 Kudos
5 Replies
LucD
Leadership
Leadership

Try like this.

Note that even when NoReboot is specified, there might be a reboot.

$vmNames = Get-Content -Path C:\Temp\vmliste.txt | where {$_}

Get-VM -Name $vmNames |

   Update-Tools -NoReboot -RunAsync


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cjscol
Expert
Expert

Even with the -NoReboot option you will still need to reboot Windows VMs to get them to use the new drivers in the newer version of VMware Tools. It is not recommended to run the VM for a prolonged amount of time after updating VMware Tools before doing a reboot.

Calvin Scoltock VCP 2.5, 3.5, 4, 5 & 6 VCAP5-DCD VCAP5-DCA http://pelicanohintsandtips.wordpress.com/blog LinkedIn: https://www.linkedin.com/in/cscoltock
0 Kudos
vmk2014
Expert
Expert

LucD,

Can't we push the re-boot later time using the script? Example patching window? 

thanks

vmk

0 Kudos
vmk2014
Expert
Expert

Can't we push the re-boot later time using the script? Example patching window?

0 Kudos
LucD
Leadership
Leadership

No, not with that cmdlet.

You could schedule a reboot of the station with the Task Scheduler (via Invoke-VMScript).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos