Last night I ran the following powercli command with the hopes of updating the VMware Tools on some of my VM's without the VM rebooting. The script seemed to run fine in that the tools did get updated correctly but unfortunately all the VM's were rebooted as soon as the update completed.
Can someone inspect my code and tell me what I have wrong?
Get-Content "c:\scripts\txt_files\VMs.txt" | Foreach-Object {Get-VM -Name $_ | Update-Tools -NoReboot -RunAsync }
Thanks,
Jason